thoughtbot / superglue

A productive library for Classic Rails, React and Redux
https://thoughtbot.github.io/superglue/
MIT License
327 stars 8 forks source link

Add data-sg-replace functionality #80

Open kholdrex opened 1 week ago

kholdrex commented 1 week ago

https://github.com/thoughtbot/superglue/issues/62

This PR adds a new data attribute, data-sg-replace. This attribute allows for replacing the browser's history state instead of pushing a new state when navigating.

Changes

Tests

jho406 commented 4 days ago

Great work! I'll give this a test during the weekend, and merge.

jho406 commented 1 day ago

This looks great! I'm marking this for a 1.0 release. I don't want to merge this in quite yet as I want to focus on the typescript conversion, but def on my radar!