onSet doesnt work with router
Lifecycle hook onSet doesn't work with nanostore/router
example:
```typescript
export const $router = createRouter(routerConfig);
onSet($router, ({ newValue, abort }) => {
console.log(newValue);
});
```
I expected it to work similarly to an effect, but with the ability to abort changes, but it turned out that it's not being called at all.
2 条评论