The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

TrueWill (22) [Avatar] Offline
For The Store API in action, if anyone actually types that in they'll need to move the import before the function. In addition it works better if the subscribe is before the dispatch; otherwise it's not fired.
Marc Garreau (28) [Avatar] Offline
Thanks for calling that out. We didn't envision the readers actually executing this code, but those are good considerations. We'll either spell that out more clearly or make some tweaks to the code like you've suggested.