Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache actions and stores for easy introspection #56

Closed
spoike opened this issue Sep 3, 2014 · 4 comments
Closed

Cache actions and stores for easy introspection #56

spoike opened this issue Sep 3, 2014 · 4 comments
Milestone

Comments

@spoike
Copy link
Member

spoike commented Sep 3, 2014

Story

As a user
I want to find all created actions AND stores from Reflux module
So that I can: trigger actions AND/OR tap on what they emit in the browser console

Explanation

At the moment it is up to the web application to hold all the created actions and stores. This proposal is for creating a action and store cache that is exposed from e.g. Reflux._actions and Reflux._stores.

This makes it easier to do introspection from a browser console, and opens up the possibility to create browser extensions that can:

  • tap into what data the actions and stores do emit
  • create a map of actions and stores
  • easily trigger an action for development testing
@spoike spoike added this to the 0.1.8 milestone Sep 10, 2014
spoike added a commit that referenced this issue Sep 11, 2014
Hopefully someone will manage to write browser plugin that uses
this.

This fixes #56
@spoike
Copy link
Member Author

spoike commented Sep 11, 2014

As a first step, added a Reflux.__keep that contains createdActions and createdStores arrays. Hopefully this is enough to make a simple browser extension.

@undoZen
Copy link
Contributor

undoZen commented Sep 11, 2014

I've done similar things in my module reflux-dispatcher

@spoike
Copy link
Member Author

spoike commented Sep 11, 2014

@undoZen 👍

Unfortunately I still haven't looked into hot reload scenario yet or had the time to review the reflux-dispatcher project yet. I do think people are free to use reflux-dispatcher if they need this functionality. :-)

@undoZen
Copy link
Contributor

undoZen commented Sep 12, 2014

@spoike
I've been thinking about doing right on async progressing and writing isomorphic modules run on both client and server side like yahoo's flux example. Too bad that I don't have time to share my experience and track your discussion here in deep.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants