You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I place a breakpoint on the line 'dispatch(offlineAction)', the Redux Dev Tools show that the 'effect' contains a function. After dispatching the offlineAction, I open Redux Offline's "outbox" and find the following:
"type": "save_air_balances_offline",
"payload": { (This contains all the correct payload data) },
"meta": {
"offline": {}
}
Note that while the "type" and "payload" are correct, the contents of "meta.offline" are empty. Here is how I've implemented Redux Offline in my (React/Typescript) application:
import offlineConfig from '@redux-offline/redux-offline/lib/defaults';
import reducers from './reducers';
import persistCallback from './middleware/persistCallback';
const customConfig = {
...offlineConfig,
persistCallback: persistCallback,
};
export const store = configureStore({
reducer: reducers,
enhancers:[offline(customConfig)]
});
Since the documentation for Redux Offline is so sparse and some examples are outdated, I'm having a hard time working out exactly how to implement the library in my application. Does anyone have a plausible explanation for what's happening or why?
The text was updated successfully, but these errors were encountered:
I have a React/Typescript project. I have defined my offline action interface as:
I implement this interface when I create and dispatch the action from my action-creator like this:
When I place a breakpoint on the line 'dispatch(offlineAction)', the Redux Dev Tools show that the 'effect' contains a function. After dispatching the offlineAction, I open Redux Offline's "outbox" and find the following:
Note that while the "type" and "payload" are correct, the contents of "meta.offline" are empty. Here is how I've implemented Redux Offline in my (React/Typescript) application:
Since the documentation for Redux Offline is so sparse and some examples are outdated, I'm having a hard time working out exactly how to implement the library in my application. Does anyone have a plausible explanation for what's happening or why?
The text was updated successfully, but these errors were encountered: