MCPcopy
hub / github.com/reflex-dev/reflex / _reload_state_module

Method _reload_state_module

reflex/testing.py:293–295  ·  view source on GitHub ↗

Reload the rx.State module to avoid conflict when reloading.

(self)

Source from the content-addressed store, hash-verified

291 self.app_asgi = self.app_instance()
292
293 def _reload_state_module(self):
294 """Reload the rx.State module to avoid conflict when reloading."""
295 reload_state_module(module=f"{self.app_name}.{self.app_name}")
296
297 def _get_backend_shutdown_handler(self):
298 if self.backend is None:

Callers 1

stopMethod · 0.95

Calls 1

reload_state_moduleFunction · 0.90

Tested by

no test coverage detected