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

Trying to make it work with redux-auth #65

Open
OriaLogic opened this issue Apr 18, 2017 · 0 comments
Open

Trying to make it work with redux-auth #65

OriaLogic opened this issue Apr 18, 2017 · 0 comments
Labels

Comments

@OriaLogic
Copy link

Hi,

This is not an issue but rather a question.
I am trying to make redux-auth work with redux-immutable. There is an issue because redux-auth tries to access the "auth" part of the state through state.auth, which of course does not work.

I would like to define a getter allowing access to auth via state.auth every time the state changes by doing:

Object.defineProperty(
  store.getState(), 
  'auth', { 
      get: function() { return this.get('auth'); 
  } 
});

That would fix this known issue.

Could you help me with that by telling me if it is possible or not?
I guess it is not a great solution but I think it would help many people.

Thanks in advance,
Cheers

@gajus gajus added the question label Apr 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants