parse-community / parse-react

[EXPERIMENTAL] React, React Native, and React with SSR (e.g. Next.js) packages to interact with Parse Server backend
https://parseplatform.org/
MIT License
70 stars 27 forks source link

useParseQuery close livequery fail, set options doesn't work #91

Closed scottjeremy closed 2 years ago

scottjeremy commented 2 years ago
  1. When I use useParseQuery func
const { isLive, isSyncing, isLoading, results, error } = useParseQuery(query, {
    enableLiveQuery: false //  not work.
});
  1. This still turns on LiveQuery

  2. I found the problem

parse-react-ssr In parse-react-ssr, when I set enableLiveQuery false, this is always going to be undefined.

parse-react-base In parse-react-base, when undefined is received, it is always set to true.

scottjeremy commented 2 years ago

Fix #90