Skip to content

Questionable global variable for persistent login #3

@ionwyn

Description

@ionwyn

At the moment, for persistent login, I've implemented a global variable in commit 5919f4b on index.js for persistent login (meaning all components are aware of the existence or absence of a logged in user).

I wonder if this is a good practice. It seems suspicious. Is this an anti-pattern to Redux?

While this was an easy implementation, I suspect that it'd be better to use Intersect/FuseAuthorization or pass it through Provider.

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions