The new Page Editing preview feature is cool, but looking into the frontend implementation of it i wondered why the draftMode feature of Next.js is not being used.
Draft mode is a feature in Next which is specifically for CMS previewers, for example Sanity uses this with Next.js to preview content. The React Accelerator however uses page revalidation somewhat incorrectly, as that is mostly for purging caches relating to the page. However using draft mode would be more in line with Next.js best practices.
https://nextjs.org/docs/app/building-your-application/configuring/draft-mode
Thank you for your suggestion. However, I would like to know what benefit would the Draft mode bring, when all pages in React accelerator are dynamic rendered?
The reason why we use revalidation is because, we want to purge the page's cache, and ask NextJs to re-render the page, as new data is available.