Closed phillipskevin closed 6 years ago
Here is the example code: https://jsbin.com/nepige/1/edit?js,output
This should be handled by https://github.com/canjs/can-stache-bindings/blob/master/can-stache-bindings.js#L662 without having to dispatch another event, per @justinbmeyer.
Issue moved to canjs/can-stache-bindings #431 via ZenHub
In order for the
can-define
value behavior to handle more use cases that streams can handle, mayberesolver
should be able to resolve the same value multiple times.I would like to be able to do something like this in order to keep the value of
oddNumber
as always an odd number:This doesn't work because, the
resolver
will only dispatch an event if the underlyingvalue
changes: https://github.com/canjs/can-simple-observable/blob/42a2b69bccd01da15055f39cc8ffb1a0856b6165/resolver/resolver.js#L109