Skip to content
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
@wszerad

Description

@wszerad

πŸ› 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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions