red-lipped-batfish-scad / HugelMaps

MIT License
6 stars 2 forks source link

Frontend: MainContainer.jsx #6

Open cmlooff opened 2 years ago

cmlooff commented 2 years ago

Link: MainContainer.jsx

Components

Communicating with the Server

graph TD;
    Index[Index.js] -->App[App.jsx]
    App-->MainContainer[MainContainer.jsx];
    MainContainer-->PostContainer[PostContainer.jsx];
    MainContainer-->FeedContainer[FeedContainer.jsx];
DavidZCheng commented 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.