This repository has been archived by the owner on Apr 6, 2023. It is now read-only.
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.
feat(nuxt): automatically generate unique keys for keyed composables #4955
feat(nuxt): automatically generate unique keys for keyed composables #4955
Changes from 4 commits
435a331
fcbb164
ca20190
8f709e3
be98e92
cf0e2da
1c1bac4
52d531d
ae61515
231c5a5
bf02262
f818c8c
4b20d10
88cf9f0
da9cf27
040acb2
bf63061
92bd6dc
585c284
4bb6cfa
9ced5f2
b3bde78
eab5ec3
502cc11
f116ff6
faab8b1
5964216
4c42bc6
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perf: We don't need array creation and shift on normal
(string, fn, obj?)
usage.We can use a variable swap for
(fn, obj?)
(is this even valid and handled when magic-keys pluign is not working ?!)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, this works even if the plugin isn't working, as long as the user provides a key. If they don't, they will get an error message: 'asyncData key must be a string'.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And you're right, we could swap variables around, but we would lose internal typing for those variables by doing it that way.