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
The emit function is working correctly in this case.
The behavior you're experiencing is the default behavior of svelte's stores.
A svelte store does not forward duplicate values, it checks for equality.
If value N+1 is equal to value N, then the value of the store won't change, thus your subscribe function won't trigger.
I've just copied the example:
And did the following on the client:
But
'hello world'
is being logged only once! exampleThe text was updated successfully, but these errors were encountered: