yoshuawuyts / barracks

:mountain_railway: action dispatcher for unidirectional data flows
MIT License
177 stars 22 forks source link

How to "stop" a barracks app? #75

Open bengourley opened 7 years ago

bengourley commented 7 years ago

I'm trying to figure out a way (might not even be possible) to "stop" a choo/barracks app for https://github.com/bengourley/choo-resume so that old versions of a hot-swapped app don't continue to run. I'm using it in conjunction with choo-log so each time the app hot-swaps, every action multiplies the amount of logs I get.

I'm thinking if we were able to replace all send() calls with noops then this would do the trick, but I can't see a way to achieve that with the existing hooks.

Halp 🤔

yoshuawuyts commented 7 years ago

Hmm yeah not sure either

On Tue, Nov 15, 2016, 22:46 Ben Gourley notifications@github.com wrote:

I'm trying to figure out a way (might not even be possible) to "stop" a choo/barracks app for https://github.com/bengourley/choo-resume so that old versions of a hot-swapped app don't continue to run. I'm using it in conjunction with choo-log so each time the app hot-swaps, every action multiplies the amount of logs I get.

I'm thinking if we were able to replace all send() calls with noops then this would do the trick, but I can't see a way to achieve that with the existing hooks.

Halp 🤔

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/yoshuawuyts/barracks/issues/75, or mute the thread https://github.com/notifications/unsubscribe-auth/ACWlerMpT1lGCcVaf5qSSndnnQP5QQIvks5q-ihEgaJpZM4KzD_4 .

yoshuawuyts commented 7 years ago

What might be great would be if we could add some of the hot reloading stuff to bankai so a wider group of people will run into this and thus we can prioritize finding a fix for this (:

On Fri, Nov 18, 2016, 15:32 yoshua wuyts yoshuawuyts@gmail.com wrote:

Hmm yeah not sure either

On Tue, Nov 15, 2016, 22:46 Ben Gourley notifications@github.com wrote:

I'm trying to figure out a way (might not even be possible) to "stop" a choo/barracks app for https://github.com/bengourley/choo-resume so that old versions of a hot-swapped app don't continue to run. I'm using it in conjunction with choo-log so each time the app hot-swaps, every action multiplies the amount of logs I get.

I'm thinking if we were able to replace all send() calls with noops then this would do the trick, but I can't see a way to achieve that with the existing hooks.

Halp 🤔

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/yoshuawuyts/barracks/issues/75, or mute the thread https://github.com/notifications/unsubscribe-auth/ACWlerMpT1lGCcVaf5qSSndnnQP5QQIvks5q-ihEgaJpZM4KzD_4 .