Changes not showing up in preview

Describe your question/issue in detail

I am currently developing new features for an existing page. I am making changes to the document, adding, removing and adjusting slices etc, but not publishing yet, as I am actively developing

My issue is that these changes are not reflecting in the preview at all. It is still sending the outdated list of slices and config to my local, and not showing the latest changes properly. I assume that this is due to the recent changes to how the save process works.

Also, while working in the Page Builder view, it seems to register when my last changes occurred (shows Edited 20min ago), but when in the Page List view it shows the last changes being from ages ago but still showing the edited state (its showing up as yellow).

This was all working fine previously when there was a save button, all my changes would show immediately when opening a preview link.

To note here, the preview and everything around it seems to be working just fine. The issue here is the updates are not reflecting.

Impacted feature

Preview

What steps have you taken to resolve this issue already?

I have tried logging out and logging back in again, as well as restarting my local servers. However, I don’t think its caching on our end, as its showing the old slices in the dataset even in environments that I haven’t used recently, meaning that the incorrect data is being sent still.

Errors

No outward errors, its just not working as expected, and as it did previously.

Your Role

Developer

Hosting provider

Amplify (though this issue is happening when trying to preview locally as well)

Package.json file

{
  "name": "company-website",
  "version": "1.1",
  "private": true,
  "scripts": {
    "dev": "next dev --turbo",
    "build": "next build",
    "start": "next start",
    "lint": "next lint",
    "slicemachine": "start-slicemachine",
    "findusages": "tsx devutils/checkusage.js"
  },
  "dependencies": {
    "@next/third-parties": "^14.1.4",
    "@prismicio/client": "^7.4.0",
    "@prismicio/helpers": "^2.3.9",
    "@prismicio/next": "^2.0.1",
    "@prismicio/react": "^3.2.1",
    "@sentry/cli": "^2.31.0",
    "@sentry/nextjs": "^7.110.1",
    "autoprefixer": "^10.4.19",
    "clsx": "^2.1.1",
    "cookie-cutter": "^0.2.0",
    "framer-motion": "^11.0.22",
    "next": "^14.1.4",
    "rc-slider": "^10.5.0",
    "react": "^18.2.0",
    "react-dom": "^18.2.0",
    "react-google-recaptcha-v3": "^1.10.1",
    "react-marquee-master": "^1.4.5",
    "react-scroll": "^1.9.0",
    "swiper": "^11.2.6",
    "tailwindcss": "^3.4.2"
  },
  "devDependencies": {
    "@eslint/eslintrc": "^3.3.1",
    "@eslint/js": "^9.26.0",
    "@slicemachine/adapter-next": "^0.3.81",
    "eslint": "^9.26.0",
    "eslint-config-next": "^15.3.2",
    "eslint-plugin-react": "^7.37.5",
    "eslint-plugin-react-hooks": "^5.2.0",
    "eslint-plugin-tailwindcss": "^3.18.0",
    "eslint-plugin-unicorn": "^59.0.1",
    "globals": "^16.1.0",
    "postcss": "^8.4.38",
    "prettier": "3.2.5",
    "prettier-plugin-tailwindcss": "^0.5.14",
    "slice-machine-ui": "^2.17.1",
    "tsx": "^4.7.1"
  }
}

Steps to reproduce

Made changes to already published file

Changes are not showing up when previewing

Hey @james.pirzenthal,

Thanks for raising this, and welcome to our community :slight_smile: Have you noticed any discrepancy in the API itself? Are the changes not showing up just on the preview, or is the API also returning outdated content? You can check that out in the API explorer by adding /builder/explorer after your repository URL.

Could you also share an example of this behavior so we can investigate further? You can do this by private message if you'd like.

Thanks!