Skip to content

Add a bridge components section - #1

Merged
zumkorn merged 1 commit into
mainfrom
bridge-components-section
Jul 18, 2026
Merged

zumkorn merged 1 commit into
mainfrom
bridge-components-section

Conversation

@zumkorn

@zumkorn zumkorn commented Jul 18, 2026

Copy link
Copy Markdown
Collaborator

Splits bridge components out of the guide into their own sidebar section, so each component gets its own page as more are added.

  • Overview — the useBridgeComponent primitive, moved from the guide, plus a note on callback lifetime. The primitive only clears callbacks on unmount, so re-registering without dropping the old one reports each interaction twice — the useBridgeForm example had that bug.
  • Button — the first component page, iOS only. Props, registration, the message contract, and the minimum hotwire-native-ios version.
  • native/ios.md gains a section on registering components.

/guide/bridge-components is already published, so it 301s to the new page via a Cloudflare _redirects file rather than breaking.

Splits bridge components out of the guide into their own sidebar section,
so each component can be documented on its own page as more are added.

- overview: the useBridgeComponent primitive, moved from the guide, plus a
  note on callback lifetime. The primitive only clears callbacks on unmount,
  so re-registering without dropping the old one reports each interaction
  twice; the useBridgeForm example had that bug.
- button: the first component page, iOS only. Covers props, registration,
  the message contract, and the minimum hotwire-native-ios version.

The old /guide/bridge-components URL is published, so it 301s to the new
page via a Cloudflare _redirects file.
@github-actions

github-actions Bot commented Jul 18, 2026 •

Copy link
Copy Markdown
built with Refined Cloudflare Pages Action

⚡ Cloudflare Pages Deployment

Name Status Preview Last Commit
inertia-native-docs ✅ Ready (View Log) Visit Preview ac523fa

@zumkorn
zumkorn merged commit 2725104 into main Jul 18, 2026
1 check passed

This branch was successfully deployed

1 active deployment
Preview — ac523fa5 Deployed Jul 18, 2026 by github-actions[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant