1👍
✅
In taskdetail
route the getSingleTask
is called and before the completion of it you are trying to access the single task.
Try adding await
before taskStore.getSingleTask(id)
and make the getTask
to be an async function. (or do it with then .. catch
)
You could give loading message in singletask
state.
👤skns
Source:stackexchange.com