MCPcopy
hub / github.com/nuxt/nuxt / isProcessingMiddleware

Function isProcessingMiddleware

packages/nuxt/src/app/composables/router.ts:85–94  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

83
84/** @since 3.0.0 */
85const isProcessingMiddleware = () => {
86 try {
87 if (useNuxtApp()._processingMiddleware) {
88 return true
89 }
90 } catch {
91 return false
92 }
93 return false
94}
95
96// Conditional types, either one or other
97type Without<T, U> = { [P in Exclude<keyof T, keyof U>]?: never }

Callers 4

useRouteFunction · 0.85
navigateToFunction · 0.85
abortNavigationFunction · 0.85
setPageLayoutFunction · 0.85

Calls 1

useNuxtAppFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…