Skip to content

reflex-base-v0.9.5.post2

@masenf masenf tagged this 10 Jun 23:41
* Memoize stateful AppWrap components

Now that StateProvider and EventLoopProvider are defined as dynamic app_wrap
components rather than static providers, it is necessary to auto-memoize
(convert to individual react components) any component that depends on state,
so that its hooks drop into the auto-memo component, rather than in the parent
AppWrap component where the StateProvider has not yet provided the value being
depended on.

This is also advantageous generally for preventing whole-page re-renders when
an app_wrap component's dependent vars change, since the page component itself
is ultimately a descendent of the AppWrap.

* add news fragment
Assets 2
Loading