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

React Query Migration #1656

Merged
merged 19 commits into from
Sep 11, 2024
Merged

React Query Migration #1656

merged 19 commits into from
Sep 11, 2024

Conversation

SafeDuck
Copy link
Collaborator

@SafeDuck SafeDuck commented Jul 26, 2024

Migration Progress:
CheckIn
Events
Statistics

image
image
image
image
image

@SafeDuck SafeDuck self-assigned this Jul 26, 2024
@SafeDuck SafeDuck linked an issue Jul 26, 2024 that may be closed by this pull request
rejected: number;
};

type Sizes = {
Copy link
Contributor

Choose a reason for hiding this comment

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

u can make this a record with enums

import { db } from "@/utils/firebase";
import { collection, doc, getDoc, getDocs } from "firebase/firestore";

type Status = {
Copy link
Contributor

Choose a reason for hiding this comment

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

make it a record with enums

XXL?: number;
};

interface Stats {
Copy link
Contributor

Choose a reason for hiding this comment

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

record with enums

admins: Status | Sizes;
}

type Event = {
Copy link
Contributor

Choose a reason for hiding this comment

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

record

};

const size = {
teams: { ...defaultShirts },
Copy link
Contributor

Choose a reason for hiding this comment

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

cant u just say teams: defaultShirts

@shahdivyank shahdivyank merged commit 4bd4c84 into dev Sep 11, 2024
6 checks passed
@shahdivyank shahdivyank deleted the SafeDuck/ReactQuery branch September 11, 2024 00:05
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.

Migrate to React Query
2 participants