nickodd, [jeremycherfas], [tantek] and [prtksxna] joined the channel
#[prtksxna]So, I’ve made some progress on my Gutenberg journey. Now my block has a bunch of settings in the settings panel that look “native” to Gutenberg and work too 😄
#[prtksxna]Next I am going to work on something that looks significantly different in edit mode and normal mode.
[tantek], [LewisCowles] and [grantcodes] joined the channel
#Loqi[prtksxna] has 6 karma in this channel over the last year (12 in all channels)
#[grantcodes]The edit mode is not too difficult, it's just a boolean variable 🙂 I find the more difficult part deciding how things should be edited and not duplicating too much code between the edit mode and normal mode
[aimee] and [prtksxna] joined the channel
#[prtksxna]Right, yeah, I am not sure how to best structure my code at the moment.
#[prtksxna]I am just going with the flow (which I am not happy about)
#[prtksxna]Ah, and `save` is when it on the post/page itself. So there are three states in total.
shimmy1996 and [jgarber] joined the channel
#[grantcodes]Yeah! I think in most cases the save and normal state can be the same. Then if stuff needs to be different other parts can be abstracted out into smaller components and reused
[aimee], [KevinMarks], [tantek] and [prtksxna] joined the channel
#[prtksxna]Right, yeah. I haven’t done the breaking out part yet