This repository was archived by the owner on Apr 6, 2023. It is now read-only.
feat(nuxt): Feature/add initialCache option in runtimeConfig.app#7807
Closed
TheDutchCoder wants to merge 3 commits intonuxt:mainfrom
Closed
feat(nuxt): Feature/add initialCache option in runtimeConfig.app#7807TheDutchCoder wants to merge 3 commits intonuxt:mainfrom
initialCache option in runtimeConfig.app#7807TheDutchCoder wants to merge 3 commits intonuxt:mainfrom
Conversation
|
|
✅ Deploy Preview for nuxt3-docs canceled.
|
ba471ea to
82e69d4
Compare
Contributor
Author
|
This obviously doesn't work yet, I'm probably approaching the config part wrong. |
Contributor
Author
|
Ok, it works properly now, but I'm lost with the tests. Not really sure how they work under the hood. |
Member
|
Thanks for PR. Planning to drop BTW supporting global options that change behavior might be tricky. If a Nuxt module or library depends on default behavior, it can be broken easily. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note: mainly looking for feedback on:
I don't want to waste your time, so feel free to close this if it's an unwanted addition!
🔗 Linked issue
Currently not an open issue, but a started idea/discussion. I can make a related issue, but first wanted to run this by you guys.
❓ Type of change
📚 Description
Currently, all data is fetched with
{ initialCache: true }as the default setting. This setting can't be changed on a configuration level, which means people have to set{ initialCache: false }on every single query if they don't want caching by default, which is cumbersome.This setting will allow people to specify a default caching strategy on a config level:
📝 Checklist