Releases: reactive-python/reactpy
0.25.0
Completely refactors layout dispatchers by switching from a class-based approach to one that leverages pure functions. While the logic itself isn't any simpler, it was easier to implement, and now hopefully understand, correctly. This conversion was motivated by several bugs that had cropped up related to improper usage of anyio.
Issues Fixed:
Highlighted Commits:
0.24.0
This release contains an update that allows components and elements to have “identity”. That is, their state can be preserved across updates. Before this point, only the state for the component at the root of an update was preserved. Now though, the state for any component and element with a key that is unique amongst its siblings, will be preserved so long as this is also true for parent elements/components within the scope of the current update. Thus, only when the key of the element or component changes will its state do the same.
In a future update, the default key for all elements and components will be its index with respect to its siblings in the layout. The IDOM_FEATURE_INDEX_AS_DEFAULT_KEY feature flag has been introduced to allow users to enable this behavior early.
- add feature flag for default key behavior - 42ee01c
- use unique object instead of index as default key - 5727ab4
- make HookCatcher/StaticEventHandlers testing utils - 1abfd76
- add element and component identity - 5548f02
- minor doc updates - e5511d9
- add tests for callback identity preservation with keys - 72e03ec
- add 'key' to VDOM spec - c3236fe
- Rename validate_serialized_vdom to validate_vdom - d04faf9
- EventHandler should not serialize itself - f7a59f2
- fix docs typos - 42b2e20
- fixes: #331 - add roadmap to docs - 4226c12
0.23.1
0.23.0
- add changelog to docs - 9cbfe94
- automatically reconnect to server - 3477e2b
- allow no reconnect in client - ef263c2
- cleaner way to specify import sources - ea19a07
- add the idom-react-client back into the main repo - 5dcc3bb
- implement fastapi render server - 94e0620
- improve docstring for IDOM_CLIENT_BUILD_DIR - 962d885
- cli improvements - 788fd86
- rename SERIALIZED_VDOM_JSON_SCHEMA to VDOM_JSON_SCHEMA - 74ad578
- better logging for modules - 39565b9
- move client utils into private module - f825e96
- redirect BUILD_DIR imports to IDOM_CLIENT_BUILD_DIR option - 53fb23b
- upgrade snowpack - 5697a2d
- better logs for idom.run + flask server - 2b34e3d
- move package to src dir - 066c9c5
- idom restore uses backup - 773f78e