Skip to content

Commit 77c62bb

Browse files
authored
🐛 fix useParseQuery will always open livequery (#90)
1 parent d4f18d7 commit 77c62bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/parse-react-ssr/src/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ export const useParseQuery = <T extends Parse.Object<Parse.Attributes>>(
137137
decodedQuery,
138138
{
139139
enabled: options && options.enabled || undefined,
140-
enableLocalDatastore: options && options.enableLocalDatastore || undefined,
141-
enableLiveQuery: options && options.enableLiveQuery || undefined,
140+
enableLocalDatastore: (options && options.enableLocalDatastore) ?? undefined,
141+
enableLiveQuery: (options && options.enableLiveQuery) ?? undefined,
142142
initialLoad: options && options.initialLoad ||
143143
findResult && {
144144
results: findResultResults,

0 commit comments

Comments
 (0)