This repository was archived by the owner on Apr 25, 2021. It is now read-only.
v4.0.0
This version introduced a number of changes into the codebase resulting in a much more performant experience for the general user as well as adding increased support for adapting the responsive state to fit your particular use case.
StoreEnhancer
calculateStateInitiallyis nowcalculateInitialStateperformanceModeis now default (no more throttled handler or associated options)
Reducer / Responsive State
- no more height/width (see README for instructions on migration forward)
- Added
isfield to responsiveState (browser.is.small<=>browser.mediaType === "small") - ReducerFactory now accepts options as second argument (after breakpoints)
infinityTypeargument is now theinfinityfield of the argument- user-defined fields can be added to the responsive state with the
extraFieldsoption which is defined as a function that takes the current responsive state and returns the new fields to add (is spread over old state so user could also overwrite values if they wanted)