You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IMHO, it should also be possible to specify multiple inputs that should be kept out of the input array 🙂
Not sure what the syntax for that would be like. The first thing that comes to mind is to use the same syntax that memo() uses, but have the array specify what arguments to exclude from memoization.
This is both a fantastic and terrible idea. It does makes sense but it makes reading the syntax a nightmare.
It could also be useAutoMemo(……, { exclude: [ …… ] }) which makes it a little bit more explicit and opens the road to other configuration in the future
Sometimes a single reference should be kept out of the inputs array, we could allow the user to specify it. A proposed syntax is:
The text was updated successfully, but these errors were encountered: