-
Notifications
You must be signed in to change notification settings - Fork 9
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
Allow exporting or importing data to a json file. #4
Comments
@sameer1612 Please assign it to me. |
@sergomen Assigning to you. I'll be reviewing PRs this saturday. Feel free to drop a comment in case of any doubt. Thanks! |
Hi sameer. I not able to solve this issue in time (this Saturday). I'm not familiar with Redux. Can you please give me additional time (2-3 days)? I will try to do my best. |
@sergomen If you are stuck somewhere. Feel free to reach out, I can help you get to speed. |
@sameer1612, I added some updates with ussues. I understand a little bit how to work with Redux, but can you pls check my updates (https://github.com/sergomen/tiers-of-joy/blob/main/src/components/import-json/import-json.tsx) I'm trying to dispatch custom json string from modal to reducer. I get array of arrays. But I need to get array of objects. I think this is the issue. I will continue tomorrow. #upd. 10.22.23 7:00am GMT. I fixed this issue. |
This is the first iteration what I want to do. The.first.iteration.tiers.of.joy.mp4 |
@sergomen this looks good. Can we not simply import a file instead of copy pasting its contents? Like by using a file picker. |
Yeah, sure. It's just the first iteration. |
@sameer1612, can you give me some advice how to 'catch' data for exporting json? It seems, I haven't any idea how to do it. |
@sergomen I can catch up for a quick 10m session tomorrow to clear your conceptual doubts. Please mail me a Google calendar invite at cyber726337@gmail.com. Happy to help! |
Thanks, @sameer1612, for your advice. Now it works. This is the second iteration. I remember I need to add a file picker and clean code. second.iteration.tiers.of.joy.mp4 |
This looks good @sergomen. Nice work! One worth change here is to do a check while importing so that the situation at end of this video doesn't happen where we have duplicates in lhs and rhs. When you implement file picker, replace the entire state, removing all existing entries before import. |
Hi @sameer1612 . I have added changes. |
Add two buttons that will export the current state to a JSON file and this file can later be imported back to initialize the redux toolkit state.
The text was updated successfully, but these errors were encountered: