@rpcbase/client 0.104.0 → 0.106.0
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/package.json +1 -1
- package/rts/getUseQuery.js +3 -3
- package/storage/index.native.js +3 -0
package/package.json
CHANGED
package/rts/getUseQuery.js
CHANGED
|
@@ -181,6 +181,8 @@ const getUseQuery = (register_query) => (
|
|
|
181
181
|
if (!isEqual(data, newData)) {
|
|
182
182
|
applyContext(context)
|
|
183
183
|
applyNewData(newData, context)
|
|
184
|
+
} else {
|
|
185
|
+
applyContext(context)
|
|
184
186
|
}
|
|
185
187
|
})
|
|
186
188
|
|
|
@@ -188,10 +190,8 @@ const getUseQuery = (register_query) => (
|
|
|
188
190
|
log && log("useQuery cleanup unsubscribe()")
|
|
189
191
|
typeof unsubscribe === "function" && unsubscribe()
|
|
190
192
|
}
|
|
191
|
-
|
|
192
|
-
|
|
193
193
|
// TODO: this isnt right we need to update on options change too
|
|
194
|
-
}, [JSON.stringify(query), key])
|
|
194
|
+
}, [JSON.stringify(query), data, key])
|
|
195
195
|
|
|
196
196
|
|
|
197
197
|
const loadNextPage = useCallback(() => {
|