Splitting the decorators from the core #88

Closed
opened 2016-02-05 11:21:59 +00:00 by mathieudutour · 5 comments
mathieudutour commented 2016-02-05 11:21:59 +00:00 (Migrated from github.com)

Right now, when using this package without immutable, it will still require immutablejs which is quite big.

Each decorators should be required separately or be in its own package.

Right now, when using this package without immutable, it will still require immutablejs which is quite big. Each decorators should be required separately or be in its own package.
michaelcontento commented 2016-02-05 11:31:56 +00:00 (Migrated from github.com)

Good point! Which solution do you prefer?

  1. Own require for decorators (similar how we handle engines currently)
  2. Like 1) but only for the immutable decorator
  3. Move all decorators into own packages
  4. Move all decorators and all engines into own packages
Good point! Which solution do you prefer? 1) Own require for decorators (similar how we handle engines currently) 2) Like 1) but only for the immutable decorator 3) Move all decorators into own packages 4) Move all decorators **and** all engines into own packages
mathieudutour commented 2016-02-05 11:34:00 +00:00 (Migrated from github.com)

Own require for decorators is the solution demanding the less work I think. I quite like it, it keeps the package.json clean

Own require for decorators is the solution demanding the less work I think. I quite like it, it keeps the package.json clean
michaelcontento commented 2016-02-05 11:41:19 +00:00 (Migrated from github.com)

I'm currently unsure. Yes, own require would be very easy. But as we're about to introduce a breaking API change, I'm willing to go a few more steps 😃

IMHO solution 4) would be the cleanest. We would also get proper dependency support for redux-storage/engines/reactNativeAsyncStorage.

I'm currently unsure. Yes, own require would be very easy. But as we're about to introduce a breaking API change, I'm willing to go a few more steps :smiley: IMHO solution 4) would be the cleanest. We would also get proper dependency support for `redux-storage/engines/reactNativeAsyncStorage`.
mathieudutour commented 2016-02-05 11:41:55 +00:00 (Migrated from github.com)

Good point

Good point
alizbazar commented 2016-02-08 12:32:03 +00:00 (Migrated from github.com)

👍

👍
This discussion has been locked. Commenting is limited to contributors.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MichaelContento/redux-storage#88
No description provided.