\n \u003CNuxtWelcome />\n \u003C/div>\n\u003C/template>\n\n\u003Cscript setup>\nconst { counterMY } = useTest();\nconsole.log('counterMY', counterMY);\n\u003C/script>\n```\n\nTo my surprise, node js does not perform any cleaning... If you do a load test of 500 queries, there will be 500 different objects with the same key in memory.\n\nCould you add this feature to the documentation?\nOr shouldn't it be?\n\nThanks!\n\n\n\n",[3094],{"name":3018,"color":3019},32234,"useState + SSR = memory leak","2025-05-29T09:15:23Z","https://github.com/nuxt/nuxt/issues/32234",0.72716635,{"labels":3101,"number":3105,"owner":3021,"repository":3021,"state":3060,"title":3106,"updated_at":3107,"url":3108,"score":3109},[3102,3103,3104],{"name":3069,"color":3070},{"name":3051,"color":3052},{"name":3076,"color":3077},13910,"share useAsyncData state","2023-01-19T17:14:17Z","https://github.com/nuxt/nuxt/issues/13910",0.7310959,{"description":3111,"labels":3112,"number":3115,"owner":3021,"repository":3021,"state":3060,"title":3116,"updated_at":3117,"url":3118,"score":3119},"### Environment\n\n------------------------------\r\n- Operating System: Linux\r\n- Node Version: v18.20.3\r\n- Nuxt Version: 3.12.1\r\n- CLI Version: 3.12.0\r\n- Nitro Version: 2.9.6\r\n- Package Manager: npm@10.2.3\r\n- Builder: -\r\n- User Config: devtools, routeRules\r\n- Runtime Modules: -\r\n- Build Modules: -\r\n------------------------------\n\n### Reproduction\n\nhttps://stackblitz.com/edit/github-caxd3f?file=app.vue\n\n### Describe the bug\n\nWhen in normal SSR mode, you can share a state using a composable like this\r\n```ts\r\n// composables/use-value.ts\r\nexport const useValue = () => useState('the-value', () => 0)\r\n```\r\nThen you can use it everywhere and it will be reactive. But if you change the SSR mode to false in nuxt.config, this shared state will not be reactive anymore. Please see the repro. When you click on the button, it will not rerender. But if you go to the nuxt.config.ts and comment the routeRules, the page will rerender after you click on the button.\r\n\r\nThis problem did not exist before 3.12.0\r\n\r\nThank you very much for this fantastic framework!\n\n### Additional context\n\n_No response_\n\n### Logs\n\n_No response_",[3113,3114],{"name":3051,"color":3052},{"name":3018,"color":3019},27559,"State defined in a composable is not reactive when `ssr: false`","2024-06-12T11:29:03Z","https://github.com/nuxt/nuxt/issues/27559",0.73640066,{"description":3121,"labels":3122,"number":3125,"owner":3021,"repository":3021,"state":3060,"title":3126,"updated_at":3127,"url":3128,"score":3129},"### Environment\n\n------------------------------\r\n- Operating System: Linux\r\n- Node Version: v18.18.0\r\n- Nuxt Version: 3.10.0\r\n- CLI Version: 3.10.0\r\n- Nitro Version: 2.8.1\r\n- Package Manager: npm@10.2.3\r\n- Builder: -\r\n- User Config: devtools\r\n- Runtime Modules: -\r\n- Build Modules: -\r\n------------------------------\n\n### Reproduction\n\nhttps://stackblitz.com/edit/github-1dmzwk?file=plugins%2FmyPlugin.ts\n\n### Describe the bug\n\nWhen using the [Shared State](https://nuxt.com/docs/getting-started/state-management#shared-state) strategy, the composables defined always return the default value in plugins, instead of the actual value.\r\n\r\nWhen setting the value in middleware, the plugin keeps referring to the default value instead of the current value.\r\n\r\nMaybe this isn't a bug and works as \"intended\", but the docs suggest that `useState` is the way to share data between server and client.\r\n\r\nit's important to note that _other_ things (like pages) use the current value correctly, it's only plugins that don't.\n\n### Additional context\n\nI'm trying to store a cookie value as `useState`, so that I can reference that instead of having to use `useCookie`, but setting the value from middleware doesn't change the value the plugin uses.\n\n### Logs\n\n_No response_",[3123,3124],{"name":3051,"color":3052},{"name":3018,"color":3019},25519,"useState composables return default value, instead of actual value in plugins","2024-01-30T23:16:16Z","https://github.com/nuxt/nuxt/issues/25519",0.73690355,["Reactive",3131],{},["Set"],["ShallowReactive",3134],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fqb5OcZncrw_K6RmrBQhJaxSf4j3qSTW79AT70w6K6QI":-1},"/nuxt/test-utils/517"]