Environment
Describe the bug
When using signals in a React project alongside suspenses, signals are never unwatched.
Rather than a wordy description, I've written some unit tests.
To Reproduce
Add the unit tests from this gist to suspense.test.tsx
https://gist.github.com/CharlieCrisp/222d10fd147596567a73ae546ff441f1
The following fail:
- "should clean up signals after unmount with multiple suspense boundaries"
- "should clean up signals after unmount with multiple suspense boundaries and use of try catch"
Expected behavior
Tests should pass, signals should be unwatched when components unmount
Environment
@preact/signals-core@preact/signals@preact/signals-reactDescribe the bug
When using signals in a React project alongside suspenses, signals are never unwatched.
Rather than a wordy description, I've written some unit tests.
To Reproduce
Add the unit tests from this gist to
suspense.test.tsxhttps://gist.github.com/CharlieCrisp/222d10fd147596567a73ae546ff441f1
The following fail:
Expected behavior
Tests should pass, signals should be unwatched when components unmount