* chore: clean up changes
* feat: clean up work and address feedback
* feat: add backwards compat
* ci: apply automated fixes
* feat: give history action to subscribers via notify
* fix: provide go index to history subscribers
* docs: updated docs accourding to feedback
* fix: changed valid notify call
* rename to `type`
* remove non existing `pushstate`event
* cleanup
* typesafe API for shouldBlockFn
* feat: added blocking state to resolver and updated examples
* docs: updated useBlocker and navigation-blocking docs
* test: added type tests to blocker and changed type implementation of blocker
* test: added better unit tests for useBlocker hook
* test: added e2e tests for blocker and legacy blocker
* wip: stash files before merge
* fix: unstashed e2e file after merge
* fix lockfile
* docs
* typesafety for `<Block>`
* always return resolver to not break backwards compatibility
* fix: removed zod from navigation blocking example to fix build problem
* chore: update lock file
* finishing touches
* ci: apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Manuel Schiller <manuel.schiller@caligano.de>
both router and react 19 were modifying the Promise object in a similar manner which caused a conflict.
See https://github.com/facebook/react/blob/v19.0.0/packages/react-reconciler/src/ReactFiberThenable.js#L162-L228 for how React 19 modifies the Promise object.
Both used an additional `status` property to track the Promise status, but router was using the value "success" and React was using the value "fulfilled" to mark a fulfilled Promise.
This change stores the router specific Promise tracking values using a symbol to avoid any potential collision.
fixes#2953
* feat(router-generator): define virtual routes using a `route.ts` file
* refactor(router-generator): passing in the root
* feat(router-cli): passing in the root
* feat(router-plugin): passing in the root
* test(router-generator): check the functionality
* test(e2e): end-to-end test for named exports
* docs(router): update the docs
* docs(router): add file paths to the virtual guide
* docs: forgot to add this path
* Update docs/framework/react/guide/virtual-file-routes.md
* Refactor `createLink` documentation
Revise the text and examples in the `createLink` guide for better clarity and completeness. Added sections for React Aria Components, Chakra UI, and MUI with detailed code examples to illustrate the usage of third-party libraries.
* Improve clarity in custom-link.md
* Replace createLink implementation for ButtonLink component
* Remove redundant explanation in MUI example of custom-link guide
* Rename and simplify component creation in CustomLink guide
* Rename and streamline custom link components
* Fix consistency in prop quoting and remove unused import
* Small consistency improvements between examples
---------
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
* chore(examples): cleanup the deps for the start examples
* docs(start): update the link to the start-counter example
* chore(e2e): remove lint and format scripts for the e2e sandboxes