You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Add `shield` option to `use_async_effect`
- Fix edge case where `use_state` could throw an exception when converting a value from `set_state(<Object>)` to `set_state(None)`.
- Add a `REACTPY_MAX_QUEUE_SIZE` setting to allow users to constrain ReactPy memory usage
- Make `pyscript` utils more extensible so Django can leverage them
- Switch the pyscript executor hook's state from `ThreadLocal` to `ContextVar` to avoid hook state clashes
- Note: ContextVar wasn't used prior since it was broken in a previous release of PyScript.
- `@reactpy/client` will now always embed the HTTP URL into the websocket in order to provide immediate URL access to `reactpy-router`.
- Events now support debounce, which can now be configured per event with `event.debounce = <milliseconds>`.
- Modify build workflow to allow ReactPy to be installed via `pip install git+...` for development purposes
Copy file name to clipboardExpand all lines: CHANGELOG.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,6 +36,7 @@ Don't forget to remove deprecated code on each major release!
36
36
- Added `reactpy.reactjs.component_from_string` to import ReactJS components from a string.
37
37
- Added `reactpy.reactjs.component_from_npm` to import ReactJS components from NPM.
38
38
- Added `reactpy.h` as a shorthand alias for `reactpy.html`.
39
+
- Added `reactpy.config.REACTPY_MAX_QUEUE_SIZE` to configure the maximum size of all ReactPy asyncio queues (e.g. receive buffer, send buffer, event buffer) before ReactPy begins waiting until a slot frees up. This can be used to constraint memory usage.
39
40
40
41
### Changed
41
42
@@ -61,6 +62,7 @@ Don't forget to remove deprecated code on each major release!
61
62
-`reactpy.types.VdomDictConstructor` has been renamed to `reactpy.types.VdomConstructor`.
62
63
-`REACTPY_ASYNC_RENDERING` can now de-duplicate and cascade renders where necessary.
63
64
-`REACTPY_ASYNC_RENDERING` is now defaulted to `True` for up to 40x performance improvements in environments with high concurrency.
65
+
- Events now support debounce, which can now be configured per event with `event.debounce = <milliseconds>`. Note that `input`, `select`, and `textarea` elements default to 200ms debounce.
64
66
65
67
### Deprecated
66
68
@@ -85,6 +87,7 @@ Don't forget to remove deprecated code on each major release!
85
87
- Removed `reactpy.run`. See the documentation for the new method to run ReactPy applications.
86
88
- Removed `reactpy.backend.*`. See the documentation for the new method to run ReactPy applications.
87
89
- Removed `reactpy.core.types` module. Use `reactpy.types` instead.
90
+
- Removed `reactpy.utils.str_to_bool`.
88
91
- Removed `reactpy.utils.html_to_vdom`. Use `reactpy.utils.string_to_reactpy` instead.
89
92
- Removed `reactpy.utils.vdom_to_html`. Use `reactpy.utils.reactpy_to_string` instead.
90
93
- Removed `reactpy.vdom`. Use `reactpy.Vdom` instead.
@@ -101,6 +104,7 @@ Don't forget to remove deprecated code on each major release!
101
104
- Fixed a bug where script elements would not render to the DOM as plain text.
102
105
- Fixed a bug where the `key` property provided within server-side ReactPy code was failing to propagate to the front-end JavaScript components.
103
106
- Fixed a bug where `RuntimeError("Hook stack is in an invalid state")` errors could be generated when using a webserver that reuses threads.
107
+
- Fixed a bug where events on controlled inputs (e.g. `html.input({"onChange": ...})`) could be lost during rapid actions.
104
108
- Allow for ReactPy and ReactJS components to be arbitrarily inserted onto the page with any possible hierarchy.
0 commit comments