Skip to content
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

Restructure client route creation in preparation for client data #8090

Merged

Conversation

brophdawg11
Copy link
Contributor

@brophdawg11 brophdawg11 commented Nov 21, 2023

Depends on #8089

This is the second in a series of PRs to implement Client Data into a feature/client-data branch.

This is a small reorganization of how we create client routes to make it easier to fork and add clientLoader/clientAction logic (in a subsequent PR). This PR shouldn't have any functional impacts.

Copy link

changeset-bot bot commented Nov 21, 2023

⚠️ No Changeset found

Latest commit: 3595819

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

`to submit to it. To fix this, please add an \`action\` function to the route`;
console.error(msg);
return Promise.reject(
new ErrorResponse(405, "Method Not Allowed", new Error(msg), true)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

loader/action here got DRY'd up into utils above that we can better compose together in a clientLoader/clientAction world

Base automatically changed from brophdawg11/deprecate-datafunctionargs to feature/client-data November 29, 2023 21:03
@brophdawg11 brophdawg11 force-pushed the brophdawg11/2-restructure-client-routes branch from df152c2 to 3595819 Compare November 29, 2023 21:05
@brophdawg11 brophdawg11 merged commit 7d0d243 into feature/client-data Nov 29, 2023
5 checks passed
@brophdawg11 brophdawg11 deleted the brophdawg11/2-restructure-client-routes branch November 29, 2023 21:06
@brophdawg11 brophdawg11 mentioned this pull request Nov 29, 2023
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants