ctrlplusb / easy-peasy

Vegetarian friendly state for React
https://easy-peasy.dev
MIT License
5.03k stars 190 forks source link

Finish the v4 release API docs #566

Open ctrlplusb opened 4 years ago

ctrlplusb commented 4 years ago
rmcarias commented 4 years ago

@ctrlplusb I noticed the npm repo is now on version 5 alpha line. And 4.1 stopped at beta 4. Are you guys not planning to release the fixes for 4.1? Specifically the IE ones. I was waiting on them so I can use the 4x line. Thanks.

jchamb commented 4 years ago

@ctrlplusb Should probably have some sort of migration guide for v4 to cover at least some of the basic changes that will be required after updating.

I just discovered that listeners on actions with .type stopped working and I had to remove all of them for just the action name.

The two biggest things I had to change were

  1. listeners, actions => action.method.type --> actions => action.method
  2. Persists whitelist: -> allow: and blacklist: -> deny:

I saw the notes about persist being pretty much a complete rewrite, but i didn't catch the listeners until testing and my loading states stop getting updated

ctrlplusb commented 3 years ago

Still working on integrating all these updates. My sincere apologies.