@solana/react 7.0.0-canary-20260630075708 → 7.0.0-canary-20260630081135
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/index.browser.cjs +3 -6
- package/dist/index.browser.cjs.map +1 -1
- package/dist/index.browser.mjs +3 -6
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.native.mjs +3 -6
- package/dist/index.native.mjs.map +1 -1
- package/dist/index.node.cjs +3 -6
- package/dist/index.node.cjs.map +1 -1
- package/dist/index.node.mjs +3 -6
- package/dist/index.node.mjs.map +1 -1
- package/dist/query.browser.cjs +1 -1
- package/dist/query.browser.cjs.map +1 -1
- package/dist/query.browser.mjs +1 -1
- package/dist/query.browser.mjs.map +1 -1
- package/dist/query.native.mjs +1 -1
- package/dist/query.native.mjs.map +1 -1
- package/dist/query.node.cjs +1 -1
- package/dist/query.node.cjs.map +1 -1
- package/dist/query.node.mjs +1 -1
- package/dist/query.node.mjs.map +1 -1
- package/dist/swr.browser.cjs +1 -1
- package/dist/swr.browser.cjs.map +1 -1
- package/dist/swr.browser.mjs +1 -1
- package/dist/swr.browser.mjs.map +1 -1
- package/dist/swr.native.mjs +1 -1
- package/dist/swr.native.mjs.map +1 -1
- package/dist/swr.node.cjs +1 -1
- package/dist/swr.node.cjs.map +1 -1
- package/dist/swr.node.mjs +1 -1
- package/dist/swr.node.mjs.map +1 -1
- package/dist/types/staticStores.d.ts +1 -1
- package/dist/types/staticStores.d.ts.map +1 -1
- package/package.json +7 -7
- package/src/query/__tests__/bridgeStoreToAsyncIterable-test.ts +1 -10
- package/src/query/__tests__/useSubscriptionQuery-test.browser.tsx +1 -10
- package/src/query/bridgeStoreToAsyncIterable.ts +1 -1
- package/src/staticStores.ts +2 -5
- package/src/swr/__tests__/bridgeStoreToSWR-test.ts +2 -11
- package/src/swr/bridgeStoreToSWR.ts +1 -1
- package/src/useSubscriptionResult.ts +1 -1
- package/src/useTrackedDataResult.ts +1 -1
package/dist/index.browser.cjs
CHANGED
|
@@ -135,11 +135,8 @@ function disabledActionStore() {
|
|
|
135
135
|
function disabledStreamStore() {
|
|
136
136
|
return {
|
|
137
137
|
connect: noopUnsubscribe,
|
|
138
|
-
|
|
139
|
-
getState: () => void 0,
|
|
140
|
-
getUnifiedState: () => IDLE_STREAM_STATE,
|
|
138
|
+
getState: () => IDLE_STREAM_STATE,
|
|
141
139
|
reset: noopUnsubscribe,
|
|
142
|
-
retry: noopUnsubscribe,
|
|
143
140
|
subscribe: noopSubscribe,
|
|
144
141
|
withSignal: () => ({ connect: noopUnsubscribe })
|
|
145
142
|
};
|
|
@@ -264,7 +261,7 @@ function useSignAndSendTransactions(uiWalletAccount, chain) {
|
|
|
264
261
|
);
|
|
265
262
|
}
|
|
266
263
|
function useSubscriptionResult(store, reconnect, disabled) {
|
|
267
|
-
const state = React5.useSyncExternalStore(store.subscribe, store.
|
|
264
|
+
const state = React5.useSyncExternalStore(store.subscribe, store.getState, store.getState);
|
|
268
265
|
return React5.useMemo(() => {
|
|
269
266
|
const status = state.status === "idle" ? disabled ? "disabled" : "loading" : state.status;
|
|
270
267
|
return { data: state.data, error: state.error, reconnect, status };
|
|
@@ -415,7 +412,7 @@ function useSignTransactions(uiWalletAccount, chain) {
|
|
|
415
412
|
);
|
|
416
413
|
}
|
|
417
414
|
function useTrackedDataResult(store, refresh, disabled) {
|
|
418
|
-
const state = React5.useSyncExternalStore(store.subscribe, store.
|
|
415
|
+
const state = React5.useSyncExternalStore(store.subscribe, store.getState, store.getState);
|
|
419
416
|
return React5.useMemo(() => {
|
|
420
417
|
const status = state.status === "idle" ? disabled ? "disabled" : "loading" : state.status;
|
|
421
418
|
return { data: state.data, error: state.error, refresh, status };
|