redux-auth icon indicating copy to clipboard operation
redux-auth copied to clipboard

Don't depend on ImmutableJS

Open wmertens opened this issue 8 years ago • 7 comments

Not everyone uses ImmutableJS, and requiring it adds a 57KB minified chunk of code to the initial download.

There is so little data in the auth reducer that ImmutableJS only adds overhead, with very little benefit. Would you consider dropping the dependency? You can use Object.assign or simply the ... spread operator for merging state into a new object.

wmertens avatar Jun 20 '16 13:06 wmertens

I'll accept a PR for this.

lynndylanhurley avatar Jul 15 '16 06:07 lynndylanhurley

FYI I'm working on this in https://github.com/wmertens/redux-auth/tree/no-immutable - almost there.

wmertens avatar Jul 19 '16 19:07 wmertens

@wmertens - I appreciate the help, thanks so much.

lynndylanhurley avatar Jul 20 '16 00:07 lynndylanhurley

@wmertens good luck. Looking to your PR too.

FullStackForger avatar Sep 07 '16 16:09 FullStackForger

I forgot about this 🙂 no time right now, anyone 'ant to take up where I left off?

On Wed, Sep 7, 2016, 6:52 PM IndieForger [email protected] wrote:

@wmertens https://github.com/wmertens good luck. Looking to your PR too.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/lynndylanhurley/redux-auth/issues/62#issuecomment-245345817, or mute the thread https://github.com/notifications/unsubscribe-auth/AADWlhU6F0W3emMpyBodktWrV0e_Upwaks5qnuvXgaJpZM4I5tbL .

wmertens avatar Sep 07 '16 20:09 wmertens

Hi Karel,

I never got around to finishing it, iirc there were some more complex Immutable API calls that had to be changed, those are still in there.

On Sat, Mar 18, 2017, 1:43 PM Karel Frajtak [email protected] wrote:

@wmertens https://github.com/wmertens good job! I pulled your repo. However the issue is still there in the minified them file (in my case default-theme.js).

@lynndylanhurley https://github.com/lynndylanhurley can you push the unminified files into repo? Or are they available elsewhere?

Thanks, Karel

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/lynndylanhurley/redux-auth/issues/62#issuecomment-287543791, or mute the thread https://github.com/notifications/unsubscribe-auth/AADWlhknMuo02s6ga_VTxM8tiOMSt9Whks5rm9FmgaJpZM4I5tbL .

wmertens avatar Mar 18 '17 22:03 wmertens

I need this and will be taking a look at it.

dandlezzz avatar Jul 06 '17 15:07 dandlezzz