Skip to content

Commit

Permalink
update changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
rmorshea committed Nov 28, 2023
1 parent f681e1b commit 387dc05
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
7 changes: 7 additions & 0 deletions docs/source/about/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ Unreleased
- :pull:`1118` - `module_from_template` is broken with a recent release of `requests`
- :pull:`1131` - `module_from_template` did not work when using Flask backend

**Added**

- :pull:`1165` - Concurrent renders - enable this experimental feature by setting
`REACTPY_FEATURE_CONCURRENT_RENDERING=true`. This should improve the overall
responsiveness of your app, particularly when handling larger renders that
would otherwise block faster renders from being processed.


v1.0.2
------
Expand Down
2 changes: 1 addition & 1 deletion src/py/reactpy/reactpy/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def boolean(value: str | bool | int) -> bool:
)
"""A default timeout for testing utilities in ReactPy"""

REACTPY_CONCURRENT_RENDERING = Option(
REACTPY_FEATURE_CONCURRENT_RENDERING = Option(
"REACTPY_CONCURRENT_RENDERING",
default=False,
mutable=True,
Expand Down
4 changes: 2 additions & 2 deletions src/py/reactpy/reactpy/core/layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@

from reactpy.config import (
REACTPY_CHECK_VDOM_SPEC,
REACTPY_CONCURRENT_RENDERING,
REACTPY_DEBUG_MODE,
REACTPY_FEATURE_CONCURRENT_RENDERING,
)
from reactpy.core._life_cycle_hook import LifeCycleHook
from reactpy.core.types import (
Expand Down Expand Up @@ -116,7 +116,7 @@ async def deliver(self, event: LayoutEventMessage) -> None:
)

async def render(self) -> LayoutUpdateMessage:
if REACTPY_CONCURRENT_RENDERING.current:
if REACTPY_FEATURE_CONCURRENT_RENDERING.current:
return await self._concurrent_render()
else: # nocov
return await self._serial_render()
Expand Down
7 changes: 5 additions & 2 deletions src/py/reactpy/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@
from _pytest.config.argparsing import Parser
from playwright.async_api import async_playwright

from reactpy.config import REACTPY_CONCURRENT_RENDERING, REACTPY_TESTING_DEFAULT_TIMEOUT
from reactpy.config import (
REACTPY_FEATURE_CONCURRENT_RENDERING,
REACTPY_TESTING_DEFAULT_TIMEOUT,
)
from reactpy.testing import (
BackendFixture,
DisplayFixture,
Expand All @@ -27,7 +30,7 @@ def pytest_addoption(parser: Parser) -> None:
)


REACTPY_CONCURRENT_RENDERING.current = True
REACTPY_FEATURE_CONCURRENT_RENDERING.current = True


@pytest.fixture
Expand Down

0 comments on commit 387dc05

Please sign in to comment.