Open coffee-cup opened 4 years ago
In an action, route is a universe watcher. This means that to access any value on it (such as path), I need to watch. e.g.
route
path
watch
const myAction = () => { const url = watch(route.path); }
It does not make sense to watch values in actions. I should be able to get the path without watching.
In an action,
route
is a universe watcher. This means that to access any value on it (such aspath
), I need towatch
. e.g.It does not make sense to watch values in actions. I should be able to get the path without watching.