Handling multiple modals.
useState
but it throws the error cannot stringify functions. Here are my implementations:
usemodal works as a controller for single modal
```
export const useModal = (closeOtherModals: () => void) => {
const isOpen = ref(false);...I need upload verification file without re-build nuxt app
Nuxt-Stripe Guide / Example
Best way to save user context to avoid needing to fetch at every page?
Composable not defined
Example of Edit Dropdown
multiple queries in useFetch how to batch update the queries so that api hit only once
nuxi update
How to stop Nuxt from preloading in dev mode?
vue3-runtime-template SSR
build
key in the Nuxt config.
On Nuxt 3, we set vue.runtimeCompiler to true in the config, and use vue3-runtime-template but this only tells Nuxt to use the runtime compiler on the client, not the server. The content is only rendered on the client, which defeats the object of using Nuxt in the first place, which is to get SSR....Use incoming event type in defineEventHandler
.post.ts
file:
```js
export default defineEventHandler(async (event) => {
const handledEvent = handlePlayerSearchEvent(event);...Nuxt Image: IPX_FILE_NOT_FOUND
defineCachedEventHandler - set maxAge from environment variable
maxAge
value from my config because I want it to be different in staging vs production:
```
export default defineCachedEventHandler(async (event) => {
const config = useRuntimeConfig()...Did you mean to import "ignore/index.js"? ELIFECYCLE Command failed with exit code 1
noindex a whole page directoru
Element ref() returning undefined when called in onMounted() after route update [SSR]
@nuxt/icon custom collection from public folder??
Nuxt & Wordpress
Can't get relative paths in `nuxi generate`
nuxi generate
, the resulting files all have absolute references to each other. How I can generate a page with relative paths so that the resulting folder can be uploaded anywhere?How do you refresh a fetch with a dynamic path (/api/page/[id])
{data, refresh} = useFetch("/api/${dynamicID}")
(<- I know it’s suposed to be )
but when I refresh the dynamicID doesn’t change which is normal... but what’s the workaround (note that I can’t use
watch because it’s on
immediate: false` and I need to refresh it on cue) ?...