Any idea how can I set a custom state with multiple fields?
I have a data type “Food” with two fields: “Type” and “Name”.
I would like to set a custom state called “Food temp” which will have a food type and a food name (that I gather from input fields on the page). The data type of the custom state will be “Food”.
I’m doing so because I don’t want to save this as a database thing until I have confirmation from the user. As soon as I have that confirmation from the user, I will add the " Food temp" custom state as a thing to the database.
The problem is how I create it as a custom state first…