Describe the feature you'd love to see
If you access a signal from a PureComponent, it does not re-render when the signal value changes.
That makes sense to me - the component claims to be a pure function of its state/props - but it's easy to accidentally introduce a signal dependency to a pure component without changing its definition to impure, and the result looks like a bug in signals.
Would it be worth logging an error (at least in development mode) in this case?
Alternatively, should pure components also be able to subscribe to signal updates?
Describe the feature you'd love to see
If you access a signal from a PureComponent, it does not re-render when the signal value changes.
That makes sense to me - the component claims to be a pure function of its state/props - but it's easy to accidentally introduce a signal dependency to a pure component without changing its definition to impure, and the result looks like a bug in signals.
Would it be worth logging an error (at least in development mode) in this case?
Alternatively, should pure components also be able to subscribe to signal updates?