Skip to content

Commit

Permalink
0.0.531
Browse files Browse the repository at this point in the history
  • Loading branch information
ivansglazunov committed Sep 16, 2024
1 parent 0d357ec commit 3d30f0a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,4 +193,7 @@ const readed = await packages.read(process.cwd());
// { [name@version]: Package }
const imported = await packages.import(readed);
// { [name@version]: Package } // possible Package.errors

// shorthand
await deep.Packages().write(process.cwd(), await deep.Packages().export());
```
4 changes: 2 additions & 2 deletions imports/client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2909,7 +2909,7 @@ export type WriteOptions<TTable extends Table = 'links'> = Options<TTable> & {
containerId?: Id;
}

const Subscription = memo(function Subscription({ query, options, interval, onChange }: any) {
export const Subscription = memo(function Subscription({ query, options, interval, onChange }: any) {
const deep = useDeep();
const result: any = deep[interval ? 'useQuery' : 'useSubscription'](query, options);
useEffect(() => {
Expand All @@ -2935,7 +2935,7 @@ const Subscription = memo(function Subscription({ query, options, interval, onCh
return null;
}, isEqual);

const Query = memo(function Query({ query, options, onChange }: any) {
export const Query = memo(function Query({ query, options, onChange }: any) {
const deep = useDeep();
const result: any = deep.useQuery(query, options);
if (result?.error?.message) console.error(result.error.message);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@deep-foundation/deeplinks",
"version": "0.0.530",
"version": "0.0.531",
"license": "Unlicense",
"type": "module",
"main": "import.js",
Expand Down

0 comments on commit 3d30f0a

Please sign in to comment.