-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
removeMatches
removes quads from Store
asynchronously
#373
Comments
removeMatches
removes quads from Store asynchronouslyremoveMatches
removes quads from Store
asynchronously
Note that this library implements removeMatches as an event emitter; in particular it is implemented as follows Lines 357 to 367 in d3faa57
So I would not expect the matches to be removed until the Are there docs / types somewhere that indicate this should be synchronous? |
It's because N3.js implements I think the only sync solution is to call |
I've seen this comment by @RubenVerborgh:
Which i guess is slightly incorrect, then. I hadn't noticed the links to the external specs, thanks @joachimvh for pointing them out, and for the workaround. Also, thank you all for promptly resolving this. 🙂 |
Back in 2018 it was correct 😅 |
When we remove quads from
Store
withremoveMatches
, they seem to stay in theStore
until next tick. I'd expect them to be removed immediately. Also seems to be the case withdeleteGraph
.You can see it reproduced in this code sandbox.
Example code
The text was updated successfully, but these errors were encountered: