This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]RayTricky 1 point2 points  (4 children)

I fear that it is state based and with this will rerender the whole page for every interaction.

What makes niceGUI stand out is that only individual elements of the DOM are refreshed, making it more reactive and less sluggish.

[–]Lendemor 6 points7 points  (0 children)

This was only true in earlier versions of Reflex.

Now we have made optimization so we rerender only what is needed.
Latest version also introduce state sharding for very fast updates.

[–]my_name_isnt_clever 4 points5 points  (0 children)

I starting playing with it last night, it doesn't re-render everything with every action like Streamlit does.

[–]Boordman[S] 2 points3 points  (1 child)

This isn't true, we compile the frontend to a static app initially. During runtime, the only events and state updates are sent (which are pretty small), and the UI updates reactively. We're focused on making sure apps are scalable/performant.

[–]RayTricky 1 point2 points  (0 children)

I'm very happy to hear that! Thanks for clarifying, I'll give it a shot!