Is your feature request related to a problem? Please describe.
As related to this issue on solid framework. Passing children to css method of stitches causes component to unnecessarily rerender.
Describe the solution you'd like
The CSS method could return it's related dependencies like:
This would allow us to extract relevant props from being processed by stitches. Or internally stitches could cache relevant props so it would only use them.
Additional context
This may be causing bugs in other frameworks/contexts not noticed by people too, solving issues people didn't even know they have.
Is your feature request related to a problem? Please describe. As related to this issue on solid framework. Passing children to css method of stitches causes component to unnecessarily rerender.
Describe the solution you'd like The CSS method could return it's related dependencies like:
This would allow us to extract relevant props from being processed by stitches. Or internally stitches could cache relevant props so it would only use them.
Additional context This may be causing bugs in other frameworks/contexts not noticed by people too, solving issues people didn't even know they have.