Skip to content

Commit 986ea79

Browse files
committed
add changelog
1 parent ffce7b9 commit 986ea79

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ Don't forget to remove deprecated code on each major release!
3737
- Added `reactpy.reactjs.component_from_npm` to import ReactJS components from NPM.
3838
- Added `reactpy.h` as a shorthand alias for `reactpy.html`.
3939
- 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.
40+
- Events now support `debounce` and `throttle`, configurable per event via `event.debounce = <milliseconds>` and `EventHandler(fn, throttle=<milliseconds>)` respectively.
41+
- `debounce` waits until activity stops, then fires once. Default is 200 ms on `input`/`select`/`textarea`, 0 ms elsewhere.
42+
- `throttle` caps the rate how often an event is allowed to execute. No default; opt in per event.
4043

4144
### Changed
4245

@@ -62,7 +65,6 @@ Don't forget to remove deprecated code on each major release!
6265
- `reactpy.types.VdomDictConstructor` has been renamed to `reactpy.types.VdomConstructor`.
6366
- `REACTPY_ASYNC_RENDERING` can now de-duplicate renders where necessary.
6467
- `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.
6668

6769
### Deprecated
6870

0 commit comments

Comments
 (0)