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
We should be able to access props at _app.js level, it can be declared as
` const { fetchMediaDataFromCMS } = require('./service/mediaData.service');
module.exports = () => ({ '/_app': [{ key: 'mediaPosts', data: fetchMediaDataFromCMS }], }); `
Also, if same function is called by another page let's say
`const { fetchMediaDataFromCMS } = require('./service/mediaData.service');
module.exports = () => ({ '/2021/[id]': [{ key: 'mediaPosts', data: fetchMediaDataFromCMS }], '/2022/[id]': [{ key: 'mediaPosts', data: fetchMediaDataFromCMS }], '/_app': [{ key: 'mediaPosts', data: fetchMediaDataFromCMS }], }); `
then, it should load the data for other pages from cache of the library, should not call the same function to evaluate again and again.
The text was updated successfully, but these errors were encountered:
developerKumar
No branches or pull requests
We should be able to access props at _app.js level, it can be declared as
`
const { fetchMediaDataFromCMS } = require('./service/mediaData.service');
module.exports = () => ({
'/_app': [{ key: 'mediaPosts', data: fetchMediaDataFromCMS }],
});
`
Also, if same function is called by another page let's say
`const { fetchMediaDataFromCMS } = require('./service/mediaData.service');
module.exports = () => ({
'/2021/[id]': [{ key: 'mediaPosts', data: fetchMediaDataFromCMS }],
'/2022/[id]': [{ key: 'mediaPosts', data: fetchMediaDataFromCMS }],
'/_app': [{ key: 'mediaPosts', data: fetchMediaDataFromCMS }],
});
`
then, it should load the data for other pages from cache of the library, should not call the same function to evaluate again and again.
The text was updated successfully, but these errors were encountered: