Hacker News new | ask | show | jobs
by mcintyre1994 2275 days ago
Is that using Phoenix LiveView? Sounds pretty cool!
1 comments

No LiveView in the mix (that is pretty cool though), it just serializes the static props to the html output if you enable hydration and then has a hook I wrote (useHydrate) that initially returns the static props for the first render (so you don’t get warnings about the render not matching the static output) and then has a callback that lets you map the assigns from the Phoenix controller to the props.