-
Type: Bug
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
We implemented a collection watch based on @kraenhansen's Codesandbox example. We found when closing the stream in a useEffect cleanup per the example, that we still received a change notification, despite having navigated away from the component that implemented the watch. Thinking our implementation was at fault, we spent quite some time trying to resolve the issue, only to find that it's reproducible in the aforementioned Codesandbox example. To reproduce, do the following in the Codesandbox example;
- press the Start watch stream button
- press the Stop watch stream button
- press the Start updates button
You'll see one change event followed by a server error 200.
- related to
-
RJS-1001 collection.watch() fails on React Native SDK
- Closed