We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am using SSR on my project with express.js.
When i request with serverPrefetch on server, response return success, and page is load. but at first, data is not correct showing other or old data.
correct data is updated when the component mounts, but the server-side component not matched to correct data
like this. IMAGE
methods:{ getCompanyProf () { registerStoreModule({ module: companyProfileModule, moduleName: 'companyProfile', store: this.$store }) let paramsArr = this.$route.params.id.split('-') let params = { companyProfileParams: { profileId: paramsArr[paramsArr.length - 1], companyId: paramsArr[paramsArr.length - 2], clientType: 'web', hash: this.$route.query.hash ? this.$route.query.hash : null, isShadow: this.$route.query.isShadow ? 1 : 0 }, companyProfileJobsParams: { profileId: paramsArr[paramsArr.length - 1], companyId: paramsArr[paramsArr.length - 2], pageNumber: 1, pageSize: 9 } } this.$store.dispatch(GET_COMPANY_PROFILE, params.companyProfileParams) } } serverPrefetch () { this.getCompanyProf()},
methods:{ getCompanyProf () { registerStoreModule({ module: companyProfileModule, moduleName: 'companyProfile', store: this.$store }) let paramsArr = this.$route.params.id.split('-') let params = { companyProfileParams: { profileId: paramsArr[paramsArr.length - 1], companyId: paramsArr[paramsArr.length - 2], clientType: 'web', hash: this.$route.query.hash ? this.$route.query.hash : null, isShadow: this.$route.query.isShadow ? 1 : 0 }, companyProfileJobsParams: { profileId: paramsArr[paramsArr.length - 1], companyId: paramsArr[paramsArr.length - 2], pageNumber: 1, pageSize: 9 } } this.$store.dispatch(GET_COMPANY_PROFILE, params.companyProfileParams) } }
serverPrefetch () { this.getCompanyProf()},
I think there is nonsense cache but i dont why? Can you help me?
The text was updated successfully, but these errors were encountered:
try runInNewContext: true renderer = createBundleRenderer( serverBundle, { runInNewContext: true, template: fs.readFileSync(templatePath, 'utf-8'), clientManifest } )
renderer = createBundleRenderer( serverBundle, { runInNewContext: true, template: fs.readFileSync(templatePath, 'utf-8'), clientManifest } )
Sorry, something went wrong.
No branches or pull requests
I am using SSR on my project with express.js.
When i request with serverPrefetch on server, response return success, and page is load. but at first, data is not correct showing other or old data.
correct data is updated when the component mounts, but the server-side component not matched to correct data
like this. IMAGE
methods:{ getCompanyProf () { registerStoreModule({ module: companyProfileModule, moduleName: 'companyProfile', store: this.$store }) let paramsArr = this.$route.params.id.split('-') let params = { companyProfileParams: { profileId: paramsArr[paramsArr.length - 1], companyId: paramsArr[paramsArr.length - 2], clientType: 'web', hash: this.$route.query.hash ? this.$route.query.hash : null, isShadow: this.$route.query.isShadow ? 1 : 0 }, companyProfileJobsParams: { profileId: paramsArr[paramsArr.length - 1], companyId: paramsArr[paramsArr.length - 2], pageNumber: 1, pageSize: 9 } } this.$store.dispatch(GET_COMPANY_PROFILE, params.companyProfileParams) } }
serverPrefetch () { this.getCompanyProf()},
I think there is nonsense cache but i dont why? Can you help me?
The text was updated successfully, but these errors were encountered: