subscribeKey() does not fire if key does not exist AND notifyInSync is falsy #826
Replies: 1 comment
-
Actually, never mind. I forgot that updates are batched when |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When I
subscribeKey()
to a key that does not exist yet, the initial assignment does not firesubscribeKey()
. However, it DOES fire when thenotifyInSync
parameter istrue
.Reproduced at: https://codesandbox.io/p/sandbox/optimistic-http-d9wr5x?file=%2Fsrc%2Findex.mjs
Is this inconsistency intended? What is the intended behavior for keys added after subscription, to fire or not to fire?
Beta Was this translation helpful? Give feedback.
All reactions