solid/reactivity
should treat functions in mergeProps
as being inside a tracking context
#179
Open
1 task done
Labels
bug
Something isn't working
Describe the bug
If you put a function inside
mergeProps
that calls a signal or prop,solid/reactivity
will warn:However, this is not true because
mergeProps
implicitly wraps all functions with acreateMemo
. You can verify that reactivity still happens here: https://playground.solidjs.com/anonymous/7998ef80-905a-485a-b7d2-9f7f4f4212a6To Reproduce
Put a function calling a signal inside
mergeProps
:Expected behavior
There is no warning.
Screenshots
https://github.com/user-attachments/assets/a5cad8e7-3e0e-428f-ad1b-2c60435b66a0
Environment (please complete the following information):
node --version
): 23.5.9eslint-plugin-solid
version (npm list eslint-plugin-solid
/yarn why eslint-plugin-solid
): 0.14.4eslint
version (npm list eslint
/yarn why eslint
): 9.16.0Additional context
mergeProps
are, in fact, safe to treat as tracking).The text was updated successfully, but these errors were encountered: