You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+23-20Lines changed: 23 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -195,6 +195,7 @@ Control when each island mounts on the client:
195
195
|`'visible'`| Mount when the host element enters the viewport (`IntersectionObserver` with configurable `rootMargin`, default `200px`) |
196
196
|`'hover'`| Mount on first `mouseover` or `focusin` on the host |
197
197
|`'event'`| Mount on configured host events (`event` option or `data-fict-react-event`; defaults to `click`) |
198
+
|`'signal'`| Mount when a provided reactive accessor (`signal` option) becomes `true`|
198
199
|`'only'`| Client-only rendering — no SSR, no hydration |
199
200
200
201
When `ssr` is `true` (the default), the React subtree is rendered to HTML on the server. On the client, the island hydrates (`hydrateRoot`) if SSR content is present, otherwise it creates a fresh root (`createRoot`).
@@ -207,15 +208,16 @@ Wraps a React component as a Fict component. Props flow reactively from the Fict
|`data-fict-react-event`| no | Comma-separated mount events for `client="event"`|
284
+
|`data-fict-react-ssr`| no |`'1'` if SSR content is present |
285
+
|`data-fict-react-prefix`| no | React `useId` identifier prefix |
286
+
|`data-fict-react-host`| — | Marks element as a React island host |
287
+
|`data-fict-react-mounted`| — | Set to `'1'` after the island mounts |
286
288
287
289
`*` Changing the QRL disposes the current root and creates a new one.
288
290
289
291
Immutable attributes (`data-fict-react-client`, `data-fict-react-ssr`, `data-fict-react-prefix`, `data-fict-react-event`) emit a warning in development if mutated at runtime. To change them, recreate the host element.
292
+
`client="signal"` requires a runtime signal accessor and is therefore not supported by `installReactIslands` static mounting.
0 commit comments