fix(schema)!: disable payload extraction by default #8890
Conversation
Β Open in CodeSandbox Web Editor | VS Code | VS Code Insiders |
β Deploy Preview for nuxt3-docs canceled.
|
Enabling it back in a semver-minor by default can be a more breaking change. and we need this feature as a baseline for Nuxt 3 release. We shall instead document possibilities of behavior changes with pre-rendered pages and asyncData behavior. |
I think disabling it is a better default. There are some issues at the moment (for example, something like #7805 needs to be merged - though not necessarily that solution). And I think there are some issues with the implementation that I have described in #7569 (comment). I would rather not have people relying on this behaviour in the stable release. |
Supporting hybrid prerendering is a good idea but we are not aiming for it in the initial v3 release.
|
The issue I linked is not with hybrid prerendering but for sites with dynamic content where a payload wasn't generated, which triggers 404 warnings. There are also issues being reported by users with payloads being wrongly cached and incorrect data being loaded on a subsequent deployment. |
I'm aware. Hope to fix it before release. But payload cache issues between deployments are not unique to Nuxt3 really nor judge to disable the feature completely. Would be happy to discuss this later in team meeting on this :) |
I guess the point I'm trying to make is that this feature and its API are not 'stable', and trying to think of the best way to communicate that to people. Happy to defer further discussion to our meeting. |
Surely we need to communicate in final release notes and docs about the stability of each feature and any known issues. My point is, even if having issues, it worth to be enabled. Because enabling a feature like payload extraction by default is a real breaking change. It changes caching strategy per navigation and disabled live fetches from server. We really need it and can use leftover time to resolve as much as known issues possible but disabling is not an option for me unless we decide to make it opt-in for Nuxt 3 always. |
π Linked issue
#8885 (comment)
β Type of change
π Description
I think payload extraction is a killer feature but I think there are still some outstanding issues which we can likely fix shortly after stable release. Until that point, I think it makes sense to disable this by default so users are aware that it is experimental and the API and behaviour may change.
π Checklist