proposal-signals icon indicating copy to clipboard operation
proposal-signals copied to clipboard

Feature: Add toJSON so that Signal.State (no matter where it exists in a bigger structure) behaves well with JSON.stringify

Open NullVoxPopuli opened this issue 1 year ago • 2 comments

title.

Idk if folks would want more information included, but I think this makes sense -- it's a reactive version of a value, and this toJSON implementation essentially just unwraps that which JSON doesn't care about

NullVoxPopuli avatar Apr 09 '24 14:04 NullVoxPopuli

roger roger

https://github.com/proposal-signals/proposal-signals/issues/164

NullVoxPopuli avatar Apr 09 '24 17:04 NullVoxPopuli

I've reasoned here why this is a terrible idea if the subscription happens out of the box: https://github.com/tc39/proposal-signals/issues/164#issuecomment-2051310776

WebReflection avatar Apr 12 '24 08:04 WebReflection