#Managing State With Intercepting Routes Next 13.3

2 messages · Page 1 of 1 (latest)

silk plume
#

Hi all, I wanted to ask if you had opinions on possible ways to manage state with next's new intercepting routes.

Take This Example:
On a dashboard I can create/delete/update posts with their own respective intercepted routes like "@modal/create-post", "@modal/delete-post" etc.

With this in mind, my problem here is how can I then take that new, updated or deleted post and reflect those changes in the state stored on the dashboards page?

Options I've Been Thinking About:

  • Context.
  • Re-fetching the list of posts on delete/create/update etc.

Any ideas would be much appreciated!

  • Nick
hollow meteor
#

the best option is redux i think