Can't create a Vue ref with a possibly null type

前端 未结 0 1479
时光说笑
时光说笑 2021-02-05 06:36

In Vue v3, I want to create a ref with a type that is possibly null. In my app, it represents data that starts out null until it finishes loading.

As a contrived example:

相关标签:
回答
  • 消灭零回复
提交回复
热议问题