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
{{ message }}
Repository navigation
Commit 29ad059
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/guide/native.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -639,6 +639,14 @@ When the host advertises the `fetch` capability (Craft's iOS host does), the bun
639
639
640
640
Native screens use the ordinary stx signal primitives. A binding effect runs when a signal it reads changes; there is no second native-only redraw or reactivity model.
641
641
642
+
Shared TypeScript helpers imported by the native app lifecycle may import runtime
643
+
functions such as `state`, `derived` and `effect` from `@stacksjs/stx` or `stx`.
644
+
The native bundler forwards those functions to the host's existing runtime,
645
+
sharing its signal graph instead of loading server rendering and filesystem
646
+
modules. Keep initialization inside the app module's default lifecycle function:
647
+
its imports are evaluated before the host starts the runtime. Screen client
0 commit comments