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
My understanding is that props are readonly and shouldn't be mutated, instead an event should be emitted back up to the parent, which should then reassign the new value at the top level (which then cascades back down to the component). This is Evan You's advice and it came up on Twitter in response to the announcement.
I'm happy to submit a PR showing this in practice if it's helpful but wanted to first ask in case there was something I'm missing.
(amazing work by the way, I'm really excited about Lotion's potential!)
The text was updated successfully, but these errors were encountered:
Currently blocks are mutating props directly, e.g:
lotion/src/components/blocks/HeadingBlock.vue
Line 4 in b1a3ade
My understanding is that props are readonly and shouldn't be mutated, instead an event should be emitted back up to the parent, which should then reassign the new value at the top level (which then cascades back down to the component). This is Evan You's advice and it came up on Twitter in response to the announcement.
I'm happy to submit a PR showing this in practice if it's helpful but wanted to first ask in case there was something I'm missing.
(amazing work by the way, I'm really excited about Lotion's potential!)
The text was updated successfully, but these errors were encountered: