Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replace_state and go operations #101

Merged
merged 5 commits into from
Jan 24, 2021
Merged

Conversation

leastbad
Copy link
Contributor

This PR implements the replace_state and go operations, mirroring the DOM History API.

I also correct several of the other operations in the "Browser Manipulation" section by moving the object destructuring to below the CR before- callbacks, allowing developers to make changes.

Callback events emit from document and the operations are cancellable.

replace_state is not as useful as push_state but there are valid use cases for it.

I was originally planning to implement back and forward operations, but there's no value to doing so when go is already a far more flexible alternative.

@leastbad leastbad changed the title push_state and go operations replace_state and go operations Jan 22, 2021
@leastbad leastbad merged commit 13f258d into stimulusreflex:master Jan 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant