News for hackers. Stuff that matters.
Re:Hyperview: Native mobile apps, as easy as creating a website by adamstep on Monday December 26, 2022 @02:14PM (#34140745)
Local interactions can be achieved with this approach by building custom components. However, a limitation of Server-driven UI is supporting interactions that update state across the entire app. For example, I wouldn’t use Hyperview or HTMX to implement a spreadsheet, where changing the value in one cell would trigger recalculations across the sheet.
Re:Hyperview: Native mobile apps, as easy as creating a website by sibeliuss on Monday December 26, 2022 @03:42PM (#34141630)
Q: Since this is built on React Native, is it possible to build pages using Hyperview and then supplement them with stateful UI component trees using common RN libraries (eg, Redux)? Like, mix approaches?
Re:Hyperview: Native mobile apps, as easy as creating a website by adamstep on Monday December 26, 2022 @05:32PM (#34142649)
It is possible. We've built apps this way (integrating Hyperview into an existing RN app). With custom behaviors, you can have actions in Hyperview screens trigger Redux actions: https://hyperview.org/docs/reference_custom_behaviors
Re:Hyperview: Native mobile apps, as easy as creating a website by sibeliuss on Monday December 26, 2022 @07:18PM (#34143408)
Great work on this! Seems very commonsensical and futuristic to me.
Re:Hyperview: Native mobile apps, as easy as creating a website by JoeyJoJoJr on Monday December 26, 2022 @05:20PM (#34142536)
I wonder if there is some mechanism that could achieve app wide state updates by performing a “refresh” after a mutation, and hyperview/HTMX handles the integration of the the changeset.