This is not an issue, but I see some strange behavior.
I'm testing my libs (external stores with useSyncExternalStore and batching via Promise.resolve()). I didn't see any tearing - all counters the same while test, but test failed.
If I notify subscribers synchronously - test will be succeed. If I change store value in microtask (at the same moment when I notify subscribers) - test will be succeed.
Hi, @dai-shi
This is not an issue, but I see some strange behavior.
I'm testing my libs (external stores with useSyncExternalStore and batching via Promise.resolve()). I didn't see any tearing - all counters the same while test, but test failed.
If I notify subscribers synchronously - test will be succeed. If I change store value in microtask (at the same moment when I notify subscribers) - test will be succeed.
Should I trust test results or my eyes?