bitmap: does passing `{children}` not work with hydration?
2025-10-24 29707, 2025
reosarevok[m]
(I'm trying to pass display-only children to a hydrated form where all the important bits would otherwise be shared, but I'm getting errors when it tries to hydrate:)
2025-10-24 29709, 2025
reosarevok[m]
Uncaught Error: Objects are not valid as a React child (found: object with keys {key, ref, props, _owner, _store}). If you meant to render a collection of children, use an array instead.
2025-10-24 29729, 2025
reosarevok[m]
Not sure if I'm doing something dumb or the whole thing just won't work because of how hydration works :)
2025-10-24 29744, 2025
SothoTalKer has quit
2025-10-24 29709, 2025
SothoTalKer joined the channel
2025-10-24 29732, 2025
Sophist-UK joined the channel
2025-10-24 29712, 2025
pite joined the channel
2025-10-24 29721, 2025
pite_ has quit
2025-10-24 29708, 2025
aerozol[m]
monkey: maybe better to do a side discussion re. design? Because timezones will be tricky. Maybe the design discussion before you all meet? I have a few ideas to simplify and would be happy to supply a draft next week, to discuss
2025-10-24 29731, 2025
aerozol[m]
(for YiM)
2025-10-24 29709, 2025
bitmap[m]
reosarevok: not exactly, but if you're passing the children on the server, it's not going to work with the way MB implements `hydrate` specifically
2025-10-24 29734, 2025
bitmap[m]
the react elements use symbols IIRC so can't be converted to/from JSON
2025-10-24 29750, 2025
bitmap[m]
once we merge the react 19 changes I can look more into the new server rendering APIs
2025-10-24 29754, 2025
reosarevok[m]
I see
2025-10-24 29758, 2025
reosarevok[m]
I was hoping for something like
2025-10-24 29759, 2025
reosarevok[m] sent a code block: https://matrix.chatbrainz.org/_matrix/media/v3/download/chatbrainz.org/NfBWxflvUDdpARFLOSRhdcrZ
2025-10-24 29719, 2025
reosarevok[m]
Then going into something like
2025-10-24 29720, 2025
reosarevok[m]
<form method="post">... (full message at <https://matrix.chatbrainz.org/_matrix/media/v3/download/chatbrainz.org/YjHwzQIXyLFSqiFHPrUPclKP>)
2025-10-24 29748, 2025
reosarevok[m]
I guess I could store both options on the form itself and pass a string to determine which one to use (plus the extra params needed for display by the other option)
2025-10-24 29738, 2025
reosarevok[m]
Or we could wait with this PR until the React 19 changes are merged if you think that'll make it simpler
2025-10-24 29700, 2025
monkey[m]
<aerozol[m]> "monkey: maybe better to do a..." <- Let's do that! Chat sometime next week?
2025-10-24 29718, 2025
Maxr1998 has quit
2025-10-24 29736, 2025
Maxr1998 joined the channel
2025-10-24 29717, 2025
monkey[m]
<ansh[m]> "> <@monkey:chatbrainz.org..." <- I am thinking we should get started sooner than later. If we have other stuff to discuss maybe that makes it this month's meeting in advance? (Considering we skipped the last one it's justifiable)