reflex/tests/components
Masen Furer 5510eaf820
[REF-2265] ComponentState: scaffold for copying State per Component instance (#2923)
* [REF-2265] ComponentState: scaffold for copying State per Component instance

Define a base ComponentState which can be used to easily create copies of the
given State definition (Vars and EventHandlers) that are tied to a particular
instance of a Component (returned by get_component)

* Define `State` field on `Component` for typing compatibility.

This is an Optional field of Type[State] and is populated by ComponentState.

* Add integration/test_component_state.py

Create two independent counters and increment them separately

* Add unit test for ComponentState
2024-03-29 09:22:25 -07:00
..
base RED-1052/rx.State as Base State (#2146) 2023-11-29 09:43:33 -08:00
core Get rx.color working with fstrings (#2562) 2024-02-09 17:06:55 -08:00
datadisplay Top-level namespace tweaks (#2523) 2024-02-05 11:14:02 -08:00
forms Merge remote-tracking branch 'origin/main' into reflex-0.4.0 2024-02-07 13:53:39 -08:00
graphing fix black+ruff (#2750) 2024-02-28 14:51:50 -08:00
layout use radix box instead of chakra one for responsive elements (#2921) 2024-03-25 15:16:48 -07:00
media Use rx.el.img as rx.image (#2558) 2024-02-08 14:44:53 -08:00
typography remove inheritance from Flex for list components (#2936) 2024-03-28 10:58:36 -07:00
__init__.py Add basic unit tests (#7) 2022-11-20 14:34:25 -08:00
test_component_future_annotations.py [REF-2272] Support declaring EventHandlers directly in component (#2952) 2024-03-29 06:26:07 -07:00
test_component_state.py [REF-2265] ComponentState: scaffold for copying State per Component instance (#2923) 2024-03-29 09:22:25 -07:00
test_component.py [REF-2272] Support declaring EventHandlers directly in component (#2952) 2024-03-29 06:26:07 -07:00
test_tag.py fixed issue with hypens (#2450) 2024-01-26 14:14:46 -08:00