Bret Comnes

Results 345 comments of Bret Comnes

Whoa sounds neat. Any examples of this somewhere?

Maybe provide a function that gets a copy of `this`/`self` and `emit` that emits lifecycle events?

@dannief sounds like maybe you are trying to use an older Choo release? The newest version of Choo does away with those and only uses mutable state objects and an...

That would work (e.g. listening on all events and checking if state has changed), or you can emit another event whenever you know you are changing state. Here is an...

I guess the way I think about it, rather than listen for state updates, listen for the events that will cause state to update if you need to hook in...

A wild v6 appears! https://github.com/yoshuawuyts/choo/pull/489 (API is nearly the same though). Yeah, I'm digging the changes too!

@dannief I had an idea... Rather than set state directly on the state object, you could write a function that sets state for you, both on Choo state and wherever...

We also may end up forking depending on how well supported these are.

Related: - https://github.com/hypermodules/hyperamp/issues/193 - https://github.com/hypermodules/hyperamp/issues/185

Wiki page: https://github.com/hypermodules/hyperamp/wiki/Metadata