composition-api icon indicating copy to clipboard operation
composition-api copied to clipboard

fix: ssrRef ignores null value

Open wszerad opened this issue 3 years ago • 0 comments

🐛 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

wszerad avatar Aug 15 '22 13:08 wszerad