Skip to content

Commit

Permalink
Merge branch 'partial-sync-effect-6' of github.com:pmndrs/jotai into …
Browse files Browse the repository at this point in the history
…partial-sync-effect-6
  • Loading branch information
dai-shi committed Jan 6, 2025
2 parents f0650d9 + b422502 commit 9b6dc2f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/vanilla/effect.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ type BatchWithSyncEffect = Batch & {
function ensureBatchChannel(batch: BatchWithSyncEffect) {
// ensure continuation of the flushBatch while loop
if (!batch[syncEffectChannelSymbol]) {
const originalQueue = (batch[1] ||= new Set())
batch[1] ||= new Set()

Check failure on line 91 in tests/vanilla/effect.test.ts

View workflow job for this annotation

GitHub Actions / test_matrix (3.9.7)

Expression expected.

Check failure on line 91 in tests/vanilla/effect.test.ts

View workflow job for this annotation

GitHub Actions / test_matrix (3.8.3)

Expression expected.
const originalQueue = batch[1]
batch[syncEffectChannelSymbol] = new Set<() => void>()
batch[1] = {
...originalQueue,
Expand Down

0 comments on commit 9b6dc2f

Please sign in to comment.