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

feat: add saving to local storage #17

Merged
merged 4 commits into from
Aug 29, 2024
Merged

feat: add saving to local storage #17

merged 4 commits into from
Aug 29, 2024

Conversation

D0dii
Copy link
Member

@D0dii D0dii commented Aug 29, 2024

No description provided.

@D0dii D0dii requested a review from Rei-x August 29, 2024 15:44
import { useAtom } from "jotai";
import { useRouter } from "next/router";

const plansAtom = atomWithStorage<never[] | { id: number; name: string }[]>("plansIds", []);
Copy link
Member

Choose a reason for hiding this comment

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

po co dajesz never[]?

@Rei-x Rei-x force-pushed the feat/saving-local-storage branch from 0cf10c8 to c942a9f Compare August 29, 2024 17:16
@Rei-x Rei-x merged commit 8cbe0de into main Aug 29, 2024
1 check passed
@Rei-x Rei-x deleted the feat/saving-local-storage branch August 29, 2024 17:24
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