How should one check for compSig instanceof Signal
for a computed after #587?
#613
Labels
question
Further information is requested
I would like to check to see whether a variable is a
computed
. I previously did this usinginstanceof Signal
which was good enough for my purposes.Since upgrading
preact/signals
this no longer works asReadonlySignal
no longer extendsSignal
.This is the change in question.
This is the sort of code I wrote.
This is the sort of code I would like to be able to write.
The text was updated successfully, but these errors were encountered: