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
Then I can call activeTables() to get the active tables via a computed.
My issue and question is I had to work around Solid in order to get it to not complain about it possibly breaking reactivity so the only way I could find in order to do so was the above.
Is this the expected approach or should I be doing something different to allow for computed to use that userId() value?
The text was updated successfully, but these errors were encountered:
Issue
The scenario I am running into is that I have a computed that looks as follows:
Now The above expects a
userId()
. However this is a somewhat dynamic value so I created a function in my store that looks as follows:I then reference this function inside of a component:
const activeTables = () => getActiveTablesByUser(userId);
Then I can call
activeTables()
to get the active tables via a computed.My issue and question is I had to work around Solid in order to get it to not complain about it possibly breaking reactivity so the only way I could find in order to do so was the above.
Is this the expected approach or should I be doing something different to allow for computed to use that userId() value?
The text was updated successfully, but these errors were encountered: