I don't recommend concatenating it into a string
I tried to output it to the console and it started eating up all the memory and the browser froze and was forced to kill the processor. Or you will hit the function call limit
I have not tested pure js since this error is possibly related to Nuxt (from the fact that it transfers the console from the server to the client). and tries to condense all proxy objects into a string, which apparently made him feel bad 🙂
7 Replies
api.auth.user
should log "auth:user"
, this is probably not the issue you're facing.well, I managed to get it out but it returned me just an empty object {}
Yeah, if it's not a function but a parent it'll be {}
Well, when passing a link to the API to the props, something breaks, and when I output to the console, the result is {} {} in the terminal on the server and there is an endless call to the function that the server has stopped working
@Michal Srb 😂
The function everything works fine, but as soon as I pass the props in the component it breaks
It's when I removed the console that crazy things happen
before
After
That is, for some reason the link breaks in the prop, so I wrapped the function to return the correct link.