Trying to make it work with redux-auth
- Dominant language
- TypeScript
- Stars
- 1.9k
- Forks
- 84
- PR merge metrics
- No merged PRs in 30d
Description
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](https://github.com/lynndylanhurley/redux-auth/issues/20).
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
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reviewing the store.getState() access pattern and the proposed Object.defineProperty getter, then read the linked redux-auth issue for compatibility context. Done would require a decided, documented approach for accessing auth state with redux-immutable; the issue does not name files or tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, redux
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100