Building large scale application is more difficult than many people understand or expect. Join me in this long running series where I set out to duplicate one of the most popular social media platforms ever creating using Java, Spring Boot, Spring Security, PostgreSQL data, React JS web application framework and more.
Today we have a short and simple episode without much debugging. We wrap up the logic inside of our create post button cluster to be able to disable different buttons depending on whether or not there 4 images, a gif, or even a poll present in the post. After fixing this, we turned our attention to being able to attach a gif from our modal to the new post slice. Once we accomplished this, we hopped back into the new PostSlice to setup the logic to generate a poll, as well as the logic to update the polls choices and end date. After completing the logic we just had to update the button cluster again to use the new createPoll reducer, as well as update the FeedPostPoll component to use the new Slice reducers to update the poll rather than using the old slice.