Skip to content
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

chore: refresh lockfile #22518

Merged
merged 4 commits into from Aug 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions packages/nuxt/src/app/components/client-fallback.client.ts
Expand Up @@ -30,6 +30,8 @@ export default defineComponent({
emits: ['ssr-error'],
setup (props, ctx) {
const mounted = ref(false)
// This is deliberate - `uid` should not be provided by user but by a transform plugin and will not be reactive.
// eslint-disable-next-line vue/no-setup-props-destructure
const ssrFailed = useState(`${props.uid}`)

if (ssrFailed.value) {
Expand Down
4 changes: 4 additions & 0 deletions packages/nuxt/src/app/components/nuxt-layout.ts
Expand Up @@ -23,6 +23,10 @@ const LayoutLoader = defineComponent({
layoutProps: Object
},
async setup (props, context) {
// This is a deliberate hack - this component must always be called with an explicit key to ensure
// that setup reruns when the name changes.

// eslint-disable-next-line vue/no-setup-props-destructure
const LayoutComponent = await layouts[props.name]().then((r: any) => r.default || r)

return () => h(LayoutComponent, props.layoutProps, context.slots)
Expand Down
2 changes: 2 additions & 0 deletions packages/nuxt/src/app/components/nuxt-loading-indicator.ts
Expand Up @@ -26,6 +26,8 @@ export default defineComponent({
}
},
setup (props, { slots }) {
// TODO: use computed values in useLoadingIndicator
// eslint-disable-next-line vue/no-setup-props-destructure
const indicator = useLoadingIndicator({
duration: props.duration,
throttle: props.throttle
Expand Down
1 change: 0 additions & 1 deletion packages/nuxt/src/app/composables/ssr.ts
@@ -1,4 +1,3 @@

import type { H3Event } from 'h3'
import { setResponseStatus as _setResponseStatus } from 'h3'
import type { NuxtApp } from '../nuxt'
Expand Down
1 change: 0 additions & 1 deletion packages/vite/src/plugins/chunk-error.ts
@@ -1,4 +1,3 @@

import MagicString from 'magic-string'
import type { Plugin } from 'vite'

Expand Down