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

Update to Remix 2.12.0 #295

Merged
merged 4 commits into from
Sep 12, 2024
Merged

Update to Remix 2.12.0 #295

merged 4 commits into from
Sep 12, 2024

Conversation

brookslybrand
Copy link
Contributor

No description provided.

@brookslybrand brookslybrand marked this pull request as draft September 5, 2024 22:10
@brophdawg11 brophdawg11 marked this pull request as ready for review September 12, 2024 19:02
@brophdawg11 brophdawg11 changed the title Upgrade packages, break some types Update to Remix 2.12.0 Sep 12, 2024
}

return json({ error: null, ok: true });
return data({ error: null, ok: true });
Copy link
Contributor

Choose a reason for hiding this comment

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

This and the prior one don't need data() because they don't care about the status but there's a known issue in our type inference that doesn't like the mixing and matching of data/json/etc. and raw objects so using data everywhere to avoid that.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I left a comment on the RR PR, should have read this one first.

Thanks for the explanation!

@@ -156,7 +152,7 @@ export default function DocPage() {
);
}

function LargeOnThisPage({ doc }: { doc: SerializeFrom<Doc> }) {
function LargeOnThisPage({ doc }: { doc: Doc }) {
Copy link
Contributor

Choose a reason for hiding this comment

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

With Single Fetch now we just get back a Doc

@brookslybrand brookslybrand merged commit 6029030 into main Sep 12, 2024
2 checks passed
@brookslybrand brookslybrand deleted the v2.12.0-pre branch September 12, 2024 20:19
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.

2 participants