Sharing optimistic state to parent component
Unanswered
Filipino Venus posted this in #help-forum
Filipino VenusOP
I have an application in next-14 app router, it's a journal app which has some fields to create a journal entry and shows those entries in a list UI. Now the entry form is a separate component that calls an action to create an entry. I wanted to show that newly created entry in the entry list before it made it to the DB, that is optimistically! but wanted to know how can I add the new entry to the entries list optimistically when the list and entry-form are separate component but are being shown on a same page/rout (/ - homepage). Thanks in advance 🙂