-
Notifications
You must be signed in to change notification settings - Fork 32
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
Fix protest list bug #43
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/1km/1km/ko3keeii1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! :)
Can you explain what was the issue and how you resolved it?
Also, check line 145 (and ProtestList
too) - loading
is being passed as a prop.
I guess I missed some of the loadings 😅 I can edit this tonight, or maybe you'll prefer just finishing it yourself and merging? |
On second thought, the solution could just be dispatching loading: true when changing address. The modal is already in the dispatch context so this should be easy. |
I'm editing from my phone. Should theoretically work
I edited from my phone, should work but I didn't test it. |
I realized that having multiple dispatches means multiple renders and multiple useEffect calls. I combined some reducer cases in order to use dispatch less times.
…km.co.il into fix-protest-list-bug
I'm really sorry for the delay. Great work 🙂 |
+HUGE performance boost. Here's a medal for you 🏅 |
fixes #42, #55