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

Method on_load_link_default

tests/integration/test_linked_state.py:84–88  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

82
83 @rx.event
84 async def on_load_link_default(self):
85 linked_state = await self._link_to(self.room or "default") # pyright: ignore[reportAttributeAccessIssue]
86 initial_note = self.router.page.params.get("initial_note", "")
87 if initial_note:
88 linked_state.note = initial_note
89
90 class PrivateState(rx.State):
91 fetched_note: str = ""

Callers

nothing calls this directly

Calls 2

_link_toMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected