Draft mode getting disabled automatically upon navigating from a page to another
Unanswered
Joice Tomy posted this in #help-forum
Hi Everyone,
I am using Sanity as a CMS for my Next.js Project, and I've integrated Sanity live preview, which works based on draft mode. The issue is that when navigating from one page to another, the draft mode gets disabled automatically sometimes. The issue is not specific to any page; it may happen by navigating from / to /abc or maybe /abc to /bcd or maybe /xys to /. Has anybody else experienced the same issue, or does anybody have a solution?
PS : Using Next.js version 14.2 (App Router)
I am using Sanity as a CMS for my Next.js Project, and I've integrated Sanity live preview, which works based on draft mode. The issue is that when navigating from one page to another, the draft mode gets disabled automatically sometimes. The issue is not specific to any page; it may happen by navigating from / to /abc or maybe /abc to /bcd or maybe /xys to /. Has anybody else experienced the same issue, or does anybody have a solution?
PS : Using Next.js version 14.2 (App Router)