reflex/tests
Masen Furer aa69234b76
Optimize StateManagerDisk (#4056)
* Simplify StateManagerDisk implementation

* Act more like the memory state manager and only track the root state in self.states
* .load_state always loads a single state or returns None
* .populate_states is the new entry point in loading from disk and it only occurs
  when the root state is not known
* much fast

* StateManagerDisk now acts much more like StateManagerMemory

Treat StateManagerDisk like StateManagerMemory for AppHarness

* Handle root_state deserialized from disk

In this case, we need to initialize the whole state tree, so any non-persistent
states will still get default values, whereas on-disk states will overwrite the
defaults.

* Cache root_state under client_token for StateManagerMemory compatibility

Mainly this just makes it easier for us to write tests that work against either
Disk or Memory state managers.
2024-10-07 09:33:16 -07:00
..
components/el feat: Add support for missing SVGs (#3962) 2024-10-01 09:24:26 -07:00
integration [ENG-3870] rx.call_script with f-string var produces incorrect code (#4039) 2024-10-03 14:18:53 -07:00
units Optimize StateManagerDisk (#4056) 2024-10-07 09:33:16 -07:00
__init__.py upgrade to latest ruff (#3497) 2024-06-19 12:32:13 +02:00
test_node_version.py reorganize all tests in a single top folder (#3981) 2024-09-26 01:22:52 +02:00