0👍
✅
you are declaring components
as a reactive
which means you don’t need to use .value
use delete componennts[key]
but a regular object
also use const
to declare ref
, reactive
… to avoid errors
Source:stackexchange.com