Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

Commit

Permalink
fix: purge non-stringifiable values from ssrRefs
Browse files Browse the repository at this point in the history
Removes warning: `Cannot stringify POJOs with symbolic keys Symbol(vfa.key.accessControlIdentifier)`
  • Loading branch information
danielroe committed May 4, 2020
1 parent 9d65775 commit ac199b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ssr-ref.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export function injectRefs() {
if (!ssrContext.nuxt.ssrRefs) ssrContext.nuxt.ssrRefs = {}

refs.forEach(([key, ref]) => {
ssrContext.nuxt.ssrRefs[key] = ref.value
ssrContext.nuxt.ssrRefs[key] = JSON.parse(JSON.stringify(ref.value))
})
}

Expand Down

0 comments on commit ac199b1

Please sign in to comment.