Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Implement sessionStore using Zustand #13

Closed
mhd-hi opened this issue Feb 12, 2025 · 0 comments
Closed

Implement sessionStore using Zustand #13

mhd-hi opened this issue Feb 12, 2025 · 0 comments
Assignees

Comments

@mhd-hi
Copy link
Contributor

mhd-hi commented Feb 12, 2025

Instead of using react context, use zustand

Session store responsibilities:

  • Manage sessions and their associated course instances
sessionKeys: Record<string, Session>

type Session = {
  key: string; ("2025-AUTOMNE" ou simialire)
  year: number;
  trimester: Trimester;
  courseIdKeys: number[]; // References to courses in courseStore
};

@mhd-hi mhd-hi self-assigned this Feb 16, 2025
@mhd-hi mhd-hi closed this as completed Feb 20, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant