Skip to content

Commit

Permalink
enhance: Remove hooks usage
Browse files Browse the repository at this point in the history
  • Loading branch information
ntucker committed Jun 21, 2024
1 parent 6d16896 commit d79891d
Show file tree
Hide file tree
Showing 11 changed files with 18 additions and 570 deletions.
552 changes: 3 additions & 549 deletions examples/github-app/package-lock.json

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions examples/github-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@
"@anansi/router": "0.10.2",
"@ant-design/icons": "^5.0.0",
"@data-client/graphql": "^0.12.0",
"@data-client/hooks": "^0.2.0",
"@data-client/react": "^0.13.2",
"@data-client/react": "^0.13.3",
"@data-client/rest": "^0.12.0",
"@js-temporal/polyfill": "^0.4.4",
"antd": "5.18.3",
Expand Down
2 changes: 1 addition & 1 deletion examples/github-app/src/pages/IssueDetail/CommentForm.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useLoading } from '@data-client/hooks';
import { useLoading } from '@data-client/react';
import { Form, Button, Input, Space } from 'antd';
import { memo } from 'react';

Expand Down
3 changes: 1 addition & 2 deletions examples/github-app/src/pages/NextPage.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { useLoading } from '@data-client/hooks';
import { useController } from '@data-client/react';
import { useController, useLoading } from '@data-client/react';
import { Button } from 'antd';
import { IssueResource } from 'resources/Issue';

Expand Down
3 changes: 2 additions & 1 deletion examples/nextjs/.npmrc
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
--omit=optional
--omit=optional
legacy-peer-deps
16 changes: 8 additions & 8 deletions examples/nextjs/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"dependencies": {
"@anansi/babel-preset": "^6.0.0",
"@babel/core": "^7.24.7",
"@data-client/react": "^0.13.2",
"@data-client/react": "^0.13.3",
"@data-client/rest": "^0.12.8",
"@types/node": "20.14.7",
"@types/react": "npm:types-react@rc",
Expand Down
1 change: 0 additions & 1 deletion website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
"@anansi/webpack-config": "19.0.8",
"@data-client/endpoint": "workspace:*",
"@data-client/graphql": "workspace:*",
"@data-client/hooks": "workspace:*",
"@data-client/react": "workspace:*",
"@data-client/rest": "workspace:*",
"@data-client/test": "workspace:*",
Expand Down
2 changes: 0 additions & 2 deletions website/src/components/Playground/PreviewWithScope.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import * as graphql from '@data-client/graphql';
import * as hooks from '@data-client/hooks';
import * as rhReact from '@data-client/react';
import * as rest from '@data-client/rest';
import type { Fixture, Interceptor } from '@data-client/test';
Expand Down Expand Up @@ -39,7 +38,6 @@ const scope = {
...rhReact,
...rest,
...graphql,
...hooks,
uuid,
randomFloatInRange,
mockFetch,
Expand Down
1 change: 0 additions & 1 deletion website/src/components/Playground/monaco-init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ if (
'@data-client/rest',
'@data-client/react',
'@data-client/graphql',
'@data-client/hooks',
'bignumber.js',
];

Expand Down
3 changes: 1 addition & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3191,7 +3191,7 @@ __metadata:
languageName: unknown
linkType: soft

"@data-client/hooks@workspace:*, @data-client/hooks@workspace:packages/hooks":
"@data-client/hooks@workspace:packages/hooks":
version: 0.0.0-use.local
resolution: "@data-client/hooks@workspace:packages/hooks"
dependencies:
Expand Down Expand Up @@ -24820,7 +24820,6 @@ __metadata:
"@anansi/webpack-config": "npm:19.0.8"
"@data-client/endpoint": "workspace:*"
"@data-client/graphql": "workspace:*"
"@data-client/hooks": "workspace:*"
"@data-client/react": "workspace:*"
"@data-client/rest": "workspace:*"
"@data-client/test": "workspace:*"
Expand Down

0 comments on commit d79891d

Please sign in to comment.