* feat: return async resolver from useBlocker hook
* feat: pass async resolvers to children on Block component
* fix: types and always reset promise
* docs: update example with custom UI
* refactor: namings
* docs: toggle between custom ui and default
* feat: expose status and refactor hook props
* feat: support current API
* feat: custom blocker should take precendence over the manual promise blocker
* test: unit test on condition to avoid breaking changes with the new API
* docs: deprecate old syntax and update the docs
* docs: create useBlocker API reference
* fix: deprecated interface
* style: prettier
* test(react-router): try using `it`
* chore: undo those test trys
* fix(router-generator): remove unnecessary line breaks
* fix(router-generator): closer to what it was earlier
* fix(router-generator): dont conflict with tsr project prettier for snapshots
* refactor: fix type errors in eliminateUnreferencedIdentifiers.ts
* fix: relative import
* fix: no-cycle by moving rootRouteId into its own file.
The cycle was:
useMatch imports Matches
Matches import route (only for rootRouteId)
route imports useMatch
by moving rootRouteId to its own file, we break the cycle because Matches does not need to depend on route anymore
* refactor: import RootRouteId from the right place
* style: prettier
---------
Co-authored-by: SeanCassiere <33615041+SeanCassiere@users.noreply.github.com>
* docs(examples): update the "authenticated routes" example with async actions
* refactor: oops didnt mean to touch that
* chore: put a comment on the sleep used on login
* docs: update the message on the home page
* chore: make sure the user can see stuff is happening during login
Be sure to re-run generator after upgrading
* perf: get lazy? do less?, generate more
* feat: add support for objects for children at runtime
- add type tests for objects with children
- add runtime support for objects with children
- add runtime tests for objects with children
* perf: apply similar optimisations for merging for code based
* perf: improve performance of LinkProps when passed to `Link`
* exmaples: add to large based file examples search, params and context
* docs: add TS performance recommendations to docs
* fix: remove route groups from id
* examples: update linkprops examples
* docs: update docs based on comments
* chore: remove export of `LinkComponentProps`
* chore: clean up PR
---------
Co-authored-by: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com>