Open devboldium opened 3 months ago
The "Edit in Studio" link doesn't open the correct page in Studio either.
I'm running studio separately from the Astro site.
Guys this is an official Sanity integration. Can we get this issue fixed anytime soon? It's pretty annoying that there has been no comment on this issue for 3 months. @runeb @stipsan @kmelve
Describe the bug When configuring the integration for visual editing/presentation (per the readme), everything works great except for page navigations within Sanity's
Presentation
tab. When trying to navigate (via link or manually changing the URL within the Presentation view), the page does not reload. In order to see the page that was navigated to, the current Sanity studio page must be manually reloaded.To Reproduce
Steps to reproduce the behavior:
loadQuery
demo code from readme)Presentation
viewExpected behavior Pages should reload/navigate automatically when the route is changed, per Sanity's presentation demos for other frameworks (e.g. Remix)
Screenshots Initial view in Presentation of homepage:
Upon trying to manually change the route within Sanity Studio:
Note that data + page being rendered is still for homepage.
After browser refresh/full reload of sanity studio:
Correct data is now displayed
Which versions of Sanity are you using?
Run
sanity versions
in the terminal and copy-paste the result here:What operating system are you using? Mac OS 13.6
Which versions of Node.js / npm are you running?
Run
npm -v && node -v
in the terminal and copy-paste the result here: NPM: 10.2.3 Node: v18.19.0Additional context
Refresh
button above the iframe pane in Sanity'sPresentation
mode also does not have an effectnetlify dev
loadQuery
demo code provided in the readme, but I am not sure