Open cmlooff opened 2 years ago
9/19 Anthony added functionality with ReactHooks for onFeedItemCreated + onFeedItemDeleted. Both of these are drilled to their respective components in PostCreator and FeedItem- when a post is created or when a post/listing is deleted, the response from the server should return an updated copy of the database. It will trigger the UseEffect in MainContainer causing the entire feed to re-render.
Link: MainContainer.jsx
Components
Communicating with the Server