Skip to content

Conversation

@ryanflorence
Copy link
Member

No description provided.

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);
Copy link
Member Author

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);
Copy link
Member Author

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({});
Copy link
Member Author

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.

`);
});
});

Copy link
Member Author

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.

@ryanflorence ryanflorence changed the title Ryan/rem 454 transition bug fixes Oct 29, 2021
Copy link
Member

@jacob-ebey jacob-ebey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚢 it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants