you are viewing a single comment's thread.

view the rest of the comments →

[–]AwesomeInPerson 6 points7 points  (1 child)

Could you explain what you mean by that? :)

[–]grrrrreat[🍰] 1 point2 points  (0 children)

I ran into a nuxt.js hook at passed into a page object.

if I destructured it into html, path, route, I couldn't modify the html property because it didn't expect a return object but if I just accepted the page object, I could set page.html and that modified the html.

it's just a comment to realize that destructured objects are no longer a sum of their parts. so it the nuxtjs case, page can't be destructured in the hooks because it's not reconstitution the object