Cue
How to disable this shaking of icon in Nuxtr
Perhaps file an issue with vscode https://github.com/microsoft/vscode
35 replies
Proxy with header
@nandi95 you can proxy via
routeRules
, it is covered in the documentation. However, this method will drop certain headers, specifically the Accept
header, which can lead to problems if your API depends on it. For example, in Laravel, exceptions are rendered as HTML if the Accept
header is not set accordingly.13 replies
I want to instanciate incoming data using useFetch(), should I use transform or onResponse()?
IMO I’d be explicit and create an index.ts in that directory and export the necessary classes, this way you’re not only managing your classes in one place, but not having to declare them in a plugin. You’d then do a wildcard import, where all classes are now effectively a map.
While it is still a declarative way of addressing your issue, it’s much more controlled so you’re not relying on hacky logic to determine what should and shouldn’t be passed to the payload handlers.
24 replies
I want to instanciate incoming data using useFetch(), should I use transform or onResponse()?
But this depends on how you're defining your classes. For example, are the classes named exports? Are there other exports within these files? Can you extract these easily?
24 replies
I want to instanciate incoming data using useFetch(), should I use transform or onResponse()?
You can do, but you'd be better off doing so with a module where you can traverse your directory and extract classes into a virtual module, and define a plugin within the module to execute the above logic.
24 replies
Dark mode with neutral color seems to be broken in the UI docs
Create and report the issue here https://github.com/nuxt/ui/issues
6 replies