Skip to content

Add CustomEvent to miso FFI.#1105

Draft
dmjio wants to merge 1 commit intomasterfrom
miso-push-state
Draft

Add CustomEvent to miso FFI.#1105
dmjio wants to merge 1 commit intomasterfrom
miso-push-state

Conversation

@dmjio
Copy link
Copy Markdown
Owner

@dmjio dmjio commented Aug 12, 2025

  • 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.
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