Skip to content

Commit 387dc05

Browse files
committed
update changelog
1 parent f681e1b commit 387dc05

File tree

4 files changed

+15
-5
lines changed

4 files changed

+15
-5
lines changed

docs/source/about/changelog.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,13 @@ Unreleased
2828
- :pull:`1118` - `module_from_template` is broken with a recent release of `requests`
2929
- :pull:`1131` - `module_from_template` did not work when using Flask backend
3030

31+
**Added**
32+
33+
- :pull:`1165` - Concurrent renders - enable this experimental feature by setting
34+
`REACTPY_FEATURE_CONCURRENT_RENDERING=true`. This should improve the overall
35+
responsiveness of your app, particularly when handling larger renders that
36+
would otherwise block faster renders from being processed.
37+
3138

3239
v1.0.2
3340
------

src/py/reactpy/reactpy/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def boolean(value: str | bool | int) -> bool:
8181
)
8282
"""A default timeout for testing utilities in ReactPy"""
8383

84-
REACTPY_CONCURRENT_RENDERING = Option(
84+
REACTPY_FEATURE_CONCURRENT_RENDERING = Option(
8585
"REACTPY_CONCURRENT_RENDERING",
8686
default=False,
8787
mutable=True,

src/py/reactpy/reactpy/core/layout.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929

3030
from reactpy.config import (
3131
REACTPY_CHECK_VDOM_SPEC,
32-
REACTPY_CONCURRENT_RENDERING,
3332
REACTPY_DEBUG_MODE,
33+
REACTPY_FEATURE_CONCURRENT_RENDERING,
3434
)
3535
from reactpy.core._life_cycle_hook import LifeCycleHook
3636
from reactpy.core.types import (
@@ -116,7 +116,7 @@ async def deliver(self, event: LayoutEventMessage) -> None:
116116
)
117117

118118
async def render(self) -> LayoutUpdateMessage:
119-
if REACTPY_CONCURRENT_RENDERING.current:
119+
if REACTPY_FEATURE_CONCURRENT_RENDERING.current:
120120
return await self._concurrent_render()
121121
else: # nocov
122122
return await self._serial_render()

src/py/reactpy/tests/conftest.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@
88
from _pytest.config.argparsing import Parser
99
from playwright.async_api import async_playwright
1010

11-
from reactpy.config import REACTPY_CONCURRENT_RENDERING, REACTPY_TESTING_DEFAULT_TIMEOUT
11+
from reactpy.config import (
12+
REACTPY_FEATURE_CONCURRENT_RENDERING,
13+
REACTPY_TESTING_DEFAULT_TIMEOUT,
14+
)
1215
from reactpy.testing import (
1316
BackendFixture,
1417
DisplayFixture,
@@ -27,7 +30,7 @@ def pytest_addoption(parser: Parser) -> None:
2730
)
2831

2932

30-
REACTPY_CONCURRENT_RENDERING.current = True
33+
REACTPY_FEATURE_CONCURRENT_RENDERING.current = True
3134

3235

3336
@pytest.fixture

0 commit comments

Comments
 (0)