This repository was archived by the owner on Dec 5, 2024. It is now read-only.
This repository was archived by the owner on Dec 5, 2024. It is now read-only.
fix: ssrRef ignores null valueΒ #677
Open
Description
π The bug
If we set ssrRef to null it becomes undefined at client-side.
π οΈ To reproduce
it's because of nullish coalescing operator:
https://github.com/nuxt-community/composition-api/blob/main/src/runtime/composables/ssr-ref.ts#L60
π Expected behaviour
Treat null as "defined" value of ssrRef