reflex/tests/units/components
Masen Furer adfda8adfd
[ENG-4165] Consider default and default_factory for state vars (#4510)
* [ENG-4165] Consider default and default_factory for state vars

When determining whether a state var should be marked as optional, check that
it is missing both default and default_factory and is not required.

Fix #4471

* add test for default factory with rx.foreach (#4515)

---------

Co-authored-by: benedikt-bartscher <31854409+benedikt-bartscher@users.noreply.github.com>
2024-12-12 10:10:44 -08:00
..
base add ERA rules to detect commented out code (#4472) 2024-12-11 18:26:44 -08:00
core [ENG-4165] Consider default and default_factory for state vars (#4510) 2024-12-12 10:10:44 -08:00
datadisplay [ENG-4010]Codeblock cleanup in markdown (#4233) 2024-11-07 19:18:14 -08:00
el add workflow to check dependencies on release branch (#4050) 2024-10-07 20:57:02 +02:00
forms components as literal vars (#4223) 2024-10-30 11:31:28 -07:00
graphing reorganize all tests in a single top folder (#3981) 2024-09-26 01:22:52 +02:00
layout reorganize all tests in a single top folder (#3981) 2024-09-26 01:22:52 +02:00
lucide reorganize all tests in a single top folder (#3981) 2024-09-26 01:22:52 +02:00
markdown [ENG-4010]Codeblock cleanup in markdown (#4233) 2024-11-07 19:18:14 -08:00
media add ERA rules to detect commented out code (#4472) 2024-12-11 18:26:44 -08:00
radix reorganize all tests in a single top folder (#3981) 2024-09-26 01:22:52 +02:00
recharts reorganize all tests in a single top folder (#3981) 2024-09-26 01:22:52 +02:00
typography reorganize all tests in a single top folder (#3981) 2024-09-26 01:22:52 +02:00
__init__.py reorganize all tests in a single top folder (#3981) 2024-09-26 01:22:52 +02:00
test_component_future_annotations.py add noop event (#4288) 2024-11-04 10:33:07 -08:00
test_component_state.py fix: do not allow instantiation of State mixins (#4347) 2024-11-18 19:15:01 -08:00
test_component.py add ERA rules to detect commented out code (#4472) 2024-12-11 18:26:44 -08:00
test_props.py [ENG-3892]Shiki codeblock support decorations (#4234) 2024-10-31 09:33:49 +00:00
test_tag.py update ruff to latest version (#4081) 2024-10-07 23:52:36 +02:00