-
Notifications
You must be signed in to change notification settings - Fork 2.7k
transition bug fixes #351
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
transition bug fixes #351
Conversation
This fixes the back/forward button navigations that land in a location that was an actions or redirect. They're normal loads when POP, not actions or redirects, so they should go down the normal load path.
| if (fetchControllers.has(key)) abortFetcher(key); | ||
|
|
||
| if (submission && isActionSubmission(submission)) { | ||
| await handleActionFetchSubmission(href, key, submission, match); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
href was unused
| return; | ||
| } | ||
|
|
||
| let redirect = findRedirect(results); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is the actual change
| trackBoundaries: false, | ||
| trackCatchBoundaries: false | ||
| }); | ||
| forceUpdate({}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this wasn't needed since we were already calling setComponentDidCatchEmulator, that name just feels weird when it's the main event that causes client transitions in remix so I renamed it to setClientState. I don't care if somebody wants to name it something else, but setComponentDidCatchEmulator just wasn't communicating what I thought it should.
| `); | ||
| }); | ||
| }); | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these are the new tests, all the other stuff in this file was just to add action to the transition signature and then a new helper to be able to "pop" back to old locations.
jacob-ebey
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚢 it.
No description provided.