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

chore: remove unnecessary unstable_defineLoader #103

Merged

Conversation

brophdawg11
Copy link
Collaborator

In preparation for the livestream tomorrow - removing the unstable_defineLoader API that shipped originally with Single Fetch but is going to be removed in an upcoming Remix release. That way we don't show anyone any dead APIs that's are on the way out. We still get effectively the same + correct type-inference from export function loader in our simplistic use cases

@@ -46,7 +45,7 @@ export default function Index() {
</h2>
{events.map((event, index) => (
<EventDetails
date={new Date(event.date)}
date={event.date}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

With Single Fetch these are de-serialized as Date instances so we don't need this anymore

Copy link
Contributor

@JoshuaKGoldberg JoshuaKGoldberg left a comment

Choose a reason for hiding this comment

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

Nice!! 👏

@JoshuaKGoldberg JoshuaKGoldberg changed the title Remove unecessary unstable_defineLoader chore: remove unnecessary unstable_defineLoader Jul 22, 2024
@JoshuaKGoldberg JoshuaKGoldberg merged commit 7d22334 into philly-js-club:main Jul 22, 2024
9 of 11 checks passed
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