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
I have a logic that has no key nor props. Within this one I want to connect a logic that handles a form and it has props and keys.
In React I generated a key string and used that as initial props in useActions or useValues. But when I try to run the code I got an error because in the logic.ts file in the connect I declare the keyed logic without specifying the key.
I don't have the key because the logic does not have any props or anything. How can I do? But first of all, is this even possible to achieve?
Here a piece of my code (this component is within a view and on an event occurring this modal opens):
I have a logic that has no key nor props. Within this one I want to connect a logic that handles a form and it has props and keys.
In React I generated a key string and used that as initial props in useActions or useValues. But when I try to run the code I got an error because in the logic.ts file in the connect I declare the keyed logic without specifying the key.
I don't have the key because the logic does not have any props or anything. How can I do? But first of all, is this even possible to achieve?
Here a piece of my code (this component is within a view and on an event occurring this modal opens):
Here the unkeyed logic:
Here the keyed logic:
The text was updated successfully, but these errors were encountered: