@instantdb/react-common 0.22.92-experimental.drewh-ssr.20348370870.1 → 0.22.92-experimental.drewh-explorer-docs.20350147917.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commonjs/InstantReactAbstractDatabase.d.ts +0 -1
- package/dist/commonjs/InstantReactAbstractDatabase.d.ts.map +1 -1
- package/dist/commonjs/InstantReactAbstractDatabase.js +17 -20
- package/dist/commonjs/InstantReactAbstractDatabase.js.map +1 -1
- package/dist/commonjs/useQuery.d.ts.map +1 -1
- package/dist/commonjs/useQuery.js +0 -1
- package/dist/commonjs/useQuery.js.map +1 -1
- package/dist/esm/InstantReactAbstractDatabase.d.ts +0 -1
- package/dist/esm/InstantReactAbstractDatabase.d.ts.map +1 -1
- package/dist/esm/InstantReactAbstractDatabase.js +17 -20
- package/dist/esm/InstantReactAbstractDatabase.js.map +1 -1
- package/dist/esm/useQuery.d.ts.map +1 -1
- package/dist/esm/useQuery.js +0 -1
- package/dist/esm/useQuery.js.map +1 -1
- package/dist/standalone/index.js +560 -616
- package/dist/standalone/index.umd.cjs +9 -9
- package/package.json +3 -3
- package/src/InstantReactAbstractDatabase.tsx +2 -5
- package/src/useQuery.ts +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instantdb/react-common",
|
|
3
|
-
"version": "0.22.92-experimental.drewh-
|
|
3
|
+
"version": "0.22.92-experimental.drewh-explorer-docs.20350147917.1",
|
|
4
4
|
"description": "Instant DB shared components for React and React Native",
|
|
5
5
|
"homepage": "https://github.com/instantdb/instant/tree/main/client/packages/react-common",
|
|
6
6
|
"repository": {
|
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
"react": ">=16"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@instantdb/core": "0.22.92-experimental.drewh-
|
|
57
|
-
"@instantdb/version": "0.22.92-experimental.drewh-
|
|
56
|
+
"@instantdb/core": "0.22.92-experimental.drewh-explorer-docs.20350147917.1",
|
|
57
|
+
"@instantdb/version": "0.22.92-experimental.drewh-explorer-docs.20350147917.1"
|
|
58
58
|
},
|
|
59
59
|
"scripts": {
|
|
60
60
|
"test": "vitest",
|
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
type ConnectionStatus,
|
|
9
9
|
type TransactionChunk,
|
|
10
10
|
type RoomSchemaShape,
|
|
11
|
+
type InstaQLParams,
|
|
11
12
|
type InstaQLOptions,
|
|
12
13
|
type InstantConfig,
|
|
13
14
|
type PageInfoResponse,
|
|
@@ -240,10 +241,6 @@ export default abstract class InstantReactAbstractDatabase<
|
|
|
240
241
|
*
|
|
241
242
|
*/
|
|
242
243
|
useAuth = (): AuthState => {
|
|
243
|
-
return this._useAuth();
|
|
244
|
-
};
|
|
245
|
-
|
|
246
|
-
protected _useAuth(): AuthState {
|
|
247
244
|
// We use a ref to store the result of the query.
|
|
248
245
|
// This is becuase `useSyncExternalStore` uses `Object.is`
|
|
249
246
|
// to compare the previous and next state.
|
|
@@ -270,7 +267,7 @@ export default abstract class InstantReactAbstractDatabase<
|
|
|
270
267
|
() => defaultAuthState,
|
|
271
268
|
);
|
|
272
269
|
return state;
|
|
273
|
-
}
|
|
270
|
+
};
|
|
274
271
|
|
|
275
272
|
/**
|
|
276
273
|
* Subscribe to the currently logged in user.
|