-
Notifications
You must be signed in to change notification settings - Fork 1
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
v3 #97
Merged
Merged
v3 #97
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* Implement static-location * Update Link activeClass doesnt work on server * Update Routers staticLocation * Fix isActive link * Update doc * 2.1.0-beta.0 * Add example-node folder in npmignore * 3.0.0-beta.0
Size Change: +905 B (+4%) Total Size: 21.7 kB
|
* Remove router memeoization * Patch strictMode because of second render
* Routes can't be formated in useEffect in SSR mode, move format in useMemo * 3.0.0-beta.2 * 3.0.0-beta.2.1
* Update peer react version * Change preact size-compressed-action by size-limit-action * Update to ci * change node version github action * Update dependencies * Update dependencies
* Fix hash history reload * Clean * Fix packages * remove example Co-authored-by: Hugo Lefrant <hugo@cher-ami.tv> Co-authored-by: Willy Brauner <mail@willybrauner.com>
* Fix: Listen history in useMemo because of SSR and Client render doesn't match * Fix: Listen history in useMemo because of SSR and Client render doesn't match
* Add action and getStaticRoutes to TRoute type * Inject staticProps in route props * Add example * Update package * Props propagation in getStaticProps * Add node-fetch as global * Implement cache * Add staticPropsCache tests * Request Global api & global context * Minor * Adapt cache * Fix tests * Replace node-fetch by isomorphic-unfetch * fix path to regex and generate index * Implement SSR langservice (#106) * Implement ssr langService * Add comment * Remove log * Create requestStaticPropsFromRoute (depends of #105) (#108) * Create getStaticPropsFromRoute * Add lang switcher for test * Add test for getCurrentRoute * Add requestStaticPropsFromRoute test * Remove node-fetch * Remove unused import * Clean * New repos struct (depends of #105) (#109) * Use pnpm & preconstruct * Update github action * Config watch for examples * Update lock * Remove Get current route method (#110) * Update core struct (#111) * Update core struct * Externalize helpers * Add doc * Update script watch to build:watch Co-authored-by: Hugo Lefrant <hugo@cher-ami.tv>
* fix: matcher should render the right route for 1st level router * Return real getRouteFromUrl * Add _context for currentRoute if parent object doesn't exist * Rename fullUrl to _fullUrl & fullPath to _fullPath * Rename langPath by _langPath * Add _context for currentRoute if parent object doesn't exist fix * Rename 1stLevelroute to auto-generate-slash-route
* Externalize fixture * remove comments * Add getSubRouterBase test * Start get subrouter routes * Add getSubRouterRoutes test * Add patchMissingRootRoute test * Add last tests and format
* _context obj needs to return formatted current route if pParent doesn't exist * Add condition in tests
* Update example * Fix langService regeneration
* Start to fix getSubRouterBase-getSubRouterRoutes * Update method and doc * Update tests
* Fix ssr regenerate routes on refresh * Improve ssr example * Fix langService in subRouter * Update npm scripts
* Expose currentLang in getStaticProps param * Make langService currentLang optional papram
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Features
(Fix the Router on strictMode #98) - v3.0.0-beta.1 Support StrictModerollback Support StrictMode (98) because of conflicts with SSR routes management.