You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can't close the watch stream unless I get at least one change from the stream. watch.return() only works when the for loop is executed at least once.
Stacktrace & log output
No response
Can you reproduce the bug?
Yes, always
Reproduction Steps
constwatch=col.watch({filter: {operationType: "insert",},});setTimeout(()=>{console.log("timed out");watch.return();},10*1000);forawait(constchangeofwatch){const{ fullDocument }=change;console.dir(fullDocument);}console.log("this is never printed");
I don't insert a document for 10 seconds, then it should run the last console.log, but it doesn't and stuck in for loop.
If I insert one within 10 seconds, it works as expected.
Version
"realm": "11.3.0"
What SDK flavour are you using?
Atlas App Services (auth, functions, etc.)
Are you using encryption?
No, not using encryption
Platform OS and version(s)
Node
Build environment
Which debugger for React Native: ..
Cocoapods version
No response
The text was updated successfully, but these errors were encountered:
@monad98 We recently fixed a similar issue in Realm Web (see #4700), and it sounds like it is the same. We need to investigate and possibly port the fix to Realm JS.
@kneth@kraenhansen this fix also works for node. Any plan to apply this to NodeJs version?
@monad98 We recently fixed a similar issue in Realm Web (see #4700), and it sounds like it is the same. We need to investigate and possibly port the fix to Realm JS.
How frequently does the bug occur?
All the time
Description
I can't close the watch stream unless I get at least one change from the stream.
watch.return()
only works when the for loop is executed at least once.Stacktrace & log output
No response
Can you reproduce the bug?
Yes, always
Reproduction Steps
I don't insert a document for 10 seconds, then it should run the last console.log, but it doesn't and stuck in for loop.
If I insert one within 10 seconds, it works as expected.
Version
"realm": "11.3.0"
What SDK flavour are you using?
Atlas App Services (auth, functions, etc.)
Are you using encryption?
No, not using encryption
Platform OS and version(s)
Node
Build environment
Which debugger for React Native: ..
Cocoapods version
No response
The text was updated successfully, but these errors were encountered: