proposal-signals
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
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

https://github.com/proposal-signals/proposal-signals/issues/164
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