Closed Fyzu closed 2 years ago
CI is running/has finished running commands for commit 1567210075708bddcf314c6c3ebeb05f98e587cd. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.
📂 See all runs for this branch
Sent with 💌 from NxCloud.
here more simple test that affeced by this issue:
const a = newAtom(1)
const b = combine(a, (a) => [a])
const cb1 = jest.fn()
b.subscribe({
next: cb1,
})
action(() => {
a.set(2)
b.get()
})
expect(cb1).toBeCalledTimes(1)
Thanks folks!
We lose change notifications if we combine
a
and its derivativeb
intoc
.And then read
c
value immediately innext
, we warm up the cache of theb
.And then emit a new value in
a
, the subscriberb
will not receive a notification.