The Navigation API is newly baseline! The web now has sensible, low-level routing for navigations.
29 reposts161 likes
The Navigation API is newly baseline! The web now has sensible, low-level routing for navigations.
29 reposts161 likes
This actually looks like a really good API. I like the scroll position and focus state part. RE polyfills -- I've been using this for the last 10 years: github.com/substrate-sy... Not a pollyfill, but it does all the things I need, and smooths the history API.
So excited by this. Related, but kind of general question: how stable is the API? I've been going through the GitHub issues for how I might implement a "rollback" after an intercept, and it looks like there have been a few of solutions: commit: 'after-transition', event.commit(), & precommitHandler.
I actually have one that I’ve been working on for the past few weeks, and I would love any feedback on it: github.com/kcrwfrd/navi... I feel quite good about supporting entries(), currentEntry, and canGoBack. I will have to start digging into navigate() @webdevs.firefox.com
I have PR open for entries() and currentEntry, I would love any feedback on it ❤️ github.com/kcrwfrd/navi... I need to sort out bundling as well. For now I started out without any bundling just so I can experiment and develop.
Full documentation: developer.mozilla.org/en-US/docs/W...
This is literally my favorite account on Bluesky and these @jakearchibald.com videos are great! Exciting to see the conclusion to the "big back button quiz" saga.