New issue
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
refactor(nuxt): don't wrap server placeholders/client fallbacks #21980
Changes from 5 commits
e2054ea
4769e09
2fd406f
c733a35
bdd3b3a
197c932
a0281c4
97c96e6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,11 @@ export interface Component { | |
* components will be used instead of lower priority components. | ||
*/ | ||
priority?: number | ||
/** | ||
* This prevent the component to be transformed with a `createClientOnly()` client-side if the mode is `client` | ||
* An example is the `<NuxtClientFallback>` component which handles it's hydration client-side | ||
*/ | ||
noClientOnlyTransform?: boolean | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would consider using this internally for NuxtClientFallback to test before making it a public property. Or do you think it's a common enough use-case that we need an API for it? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not sure about that π€ I guess we'd need to know if some users need it. It's mainly a way to keep side-effects modules only on 1 side (server or client). There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd be happy to merge an fix needing this with an internal property that we set and consume for There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. let's mark it private for now π |
||
} | ||
|
||
export interface ScanDir { | ||
|
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.
Is there a better naming for this ?
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.
prewrapped? raw?
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.
raw might be confusing since vue has markRaw which you might use on a component https://vuejs.org/api/reactivity-advanced.html#markraw
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.
oh i'd prefer raw over prewrapped π