solid
solid copied to clipboard
[feature] Stores don't have `in`/`has` trap
Describe the bug
Feature request: It'd be nice for the in operator to be reactive (has and deleteProperty proxy traps). Example:
Your Example Website or App
https://playground.solidjs.com/?hash=-210189711&version=1.4.1
Steps to Reproduce the Bug or Issue
https://playground.solidjs.com/?hash=-210189711&version=1.4.1
Expected behavior
The effect should run when n is deleted in the example
Screenshots or Videos
No response
Platform
- OS: [e.g. macOS, Windows, Linux]
- Browser: [e.g. Chrome, Safari, Firefox]
- Version: [e.g. 91.1]
Additional context
No response
Workaround is to read the property: https://playground.solidjs.com/?hash=913169158&version=1.4.1 (although it doesn't change only when the boolean result of in changes, but on any value change)