🔥 (233) Writable Computed Refs, Hidden Components, and Render Functions
Read this on my blog Hi! This week is a bit quieter for me. I just wrapped up the launch of Advanced Reactivity , so I'm switching gears a little. So, no new articles for you this week, but I've got some from the archives that you might have missed! And of course, your tips, as always. Have a fantastic week! — Michael 🔥 Writable Computed Refs Computed refs are cool and all, but did you know you can create writable computed refs? const firstName = ref ( '' ); const lastName = ref ( '' ); const fullName = computed ({ get : () => ` ${ firstName . value } ${ lastName . value } ` , set : ( val ) => { const split = val . split ( ' ' ); // ['Michael', 'Thiessen'] firstName . value = split [ 0 ]; // 'Michael' lastName . value = split [ 1 ]; // 'Thiessen' } }); fullName . value = 'Michael T...