solid icon indicating copy to clipboard operation
solid copied to clipboard

[feature] Stores don't have `in`/`has` trap

Open trusktr opened this issue 3 years ago • 1 comments

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

trusktr avatar Jul 10 '22 10:07 trusktr

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)

trusktr avatar Jul 10 '22 10:07 trusktr