Build Offline-First Apps for Web and React Native
MIT License
Bot releases are visible (Hide)
Published by sorodrigo over 4 years ago
Published by sorodrigo over 4 years ago
Published by sorodrigo over 4 years ago
Support for Expo SDK 36
Published by sorodrigo almost 5 years ago
Published by sorodrigo about 5 years ago
Published by sorodrigo almost 6 years ago
Published by sorodrigo almost 6 years ago
Huge thanks to @tobloef @jarvisluong @echoes221 @evilmarty @saiichihashimoto @alexan @python273 for helping!
Published by sorodrigo over 6 years ago
Huge thanks to @Xyzor, @aviadavretz & @echoes221 for helping!
Published by sorodrigo over 6 years ago
Published by sorodrigo over 6 years ago
Published by sorodrigo almost 7 years ago
Published by sorodrigo almost 7 years ago
README.MD
. (@elf-pavlik in #38 )Published by sorodrigo almost 7 years ago
detectNetwork.native.js
.Content-Type
header is found on effect.js
.Published by jevakallio over 7 years ago
This release removes the special snowflake createOfflineStore
method in favor of Redux store enhancers. This will get us better interoperability with other redux libraries, and paves way to "universal" Redux Offline that can be used with frameworks likes Vue and Angular.
This release also contains the bugfixes released as v1.1.0 earlier today. If you are migrating from 1.0.x, check that change log for a full list of improvements and fixes.
The changes are simple, and limited to your store creation logic:
createOfflineStore
, import the offline
store enhancer from redux-offline
createOfflineStore
, use the default redux createStore
createOfflineStore
, pass it to the offline
store enhancercompose
from redux to compose the offline enhancer with them-import { applyMiddleware } from 'redux';
+import { applyMiddleware, createStore, compose } from 'redux';
// import the "offline" store enhancer instead of createOfflineStore
- import { createOfflineStore } from 'redux-offline'
+import { offline } from 'redux-offline';
import offlineConfig from 'redux-offline/lib/defaults';
// ...
-const store = createOfflineStore(
+const store = createStore(
reducer,
preloadedState,
- applyMiddleware(middleware),
- offlineConfig
+ compose(
+ applyMiddleware(middleware),
+ offline(offlineConfig)
+ )
);
Thank you @migueloller and @gaearon for contributing to this release! π
Published by jevakallio over 7 years ago
This release contains mainly backwards-compatible bugfixes in preparation for a larger, breaking 2.0 release.
window
not being available when rendering on server. There may still be other server rendering issues, and in fact it might be a better idea to not load Redux Offline in server rendering context at all.persistCallback
that is called after the rehydration is finished
Thank you @benlime @SashaSirotkin @n-sviridenko @rtkhanas @unindented for contributing to this release! β