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 want to edit the "options" value. I need to transform it into a structure I can work with more easily. Additionally, it would be helpful if it had an ID for handling edits and deletes. The ID can be generated using Ecto.UUID.generate(). The desired structure might look like this...
A callback to process props/param inputs into the a
Surface.LiveComponent
's state would be helpful.The
mount/1
callback doesn't have access to the props yet. Therender/1
function doesn't feel like the right place.Here's an example. Let me know if you see a better way to solve this.
An item may look like this:
I want to edit the "options" value. I need to transform it into a structure I can work with more easily. Additionally, it would be helpful if it had an ID for handling edits and deletes. The ID can be generated using
Ecto.UUID.generate()
. The desired structure might look like this...There currently doesn't appear to be a good place to perform this transformation from a prop value into the state I want to manage internally.
The text was updated successfully, but these errors were encountered: