App Logic and State Management Challenge Solution
bcleland opened this issue · 2 comments
bcleland commented
Hi,
At the end of App Logic and State Management section, a Challenge is posed. I've attempted a solution to the challenge, but I'm curious to see the recommended solution. Is it possible to get the solution posted to the repo?
Thank you for creating this Crash Course and any additional information you can provide!
drorbiran commented
Hi @bcleland,
I have added the solution for the challenge:
c026ee4
My approach was to connect the ViewPost
screen to the store instead of passing the post as a prop. When a screen is connected to the store, every relevant update on the store will be reflected on the screen. I also used the AddPost
screen to edit the post.
bcleland commented
Thanks, @drorbiran! This is very helpful.