Skip to content

Add CustomEvent to miso FFI. - #1105

Draft
dmjio wants to merge 1 commit into
masterfrom
miso-push-state
Draft

dmjio wants to merge 1 commit into
masterfrom
miso-push-state

Conversation

@dmjio

@dmjio dmjio commented Aug 12, 2025

Copy link
Copy Markdown
Owner
  • Adds customEvent function
  • Refactors uriSub to have deterministc resource handling via createSub
  • Adds custom miso-replaceState and miso-pushState events.

We emit custom History API events, because pushState and replaceState don't invoke popstate events, we raise our own custom ones, and write to the Component sink to make the application aware changes to the URI have been made.

- [x] Adds `customEvent` function
- [x] Refactors `uriSub` to have deterministc resource handling via `createSub`
- [x] Adds custom `miso-replaceState` and `miso-pushState` events.

We emit custom `History` API events, because `pushState` and
`replaceState` don't invoke `popstate` events, we raise our own custom
ones, and write to the `Component` sink to make the application aware
changes to the URI have been made.
@dmjio
dmjio marked this pull request as draft August 14, 2025 02:14
@dmjio
dmjio force-pushed the master branch 3 times, most recently from 3c337c8 to 863bafa Compare May 18, 2026 22:54
@dmjio
dmjio force-pushed the master branch 3 times, most recently from 3f8ac8b to eb9fa23 Compare May 25, 2026 11:48
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