Once an async computed task has been executed, there is no way to return it to it's "initial" state.
In Lit's Task we provide an initialState sentinel value that a compute function can return to put the Task back into the initial state. It might also be nice to have a reset() method to do this from outside the compute function. It should clear the current error and restore the initial value.
Once an async computed task has been executed, there is no way to return it to it's "initial" state.
In Lit's Task we provide an
initialStatesentinel value that a compute function can return to put the Task back into the initial state. It might also be nice to have areset()method to do this from outside the compute function. It should clear the current error and restore the initial value.