Gatsby-plugin-offline doesn't work with Redux #7053
Labels
help wanted
Issue with a clear description that the community can help with.
type: bug
An issue or pull request relating to a bug in Gatsby
Description
Whenever I add Redux to Gatsby, gatsby-plugin-offline stops working. The service worker is registered, but the offline functionality doesn't work
Steps to reproduce
This setup is deployed here if you want to try:
https://staging.maze.design/
(You can see the issue with SW on the console)
Expected result
The site should continue to function while offline
Actual result
The site doesn't work offline
Environment
File contents (if changed)
gatsby-config.js
: ```module.exports = {siteMetadata: {
title: "Gatsby Redux",
},
// In your gatsby-config.js
plugins: ["gatsby-plugin-offline"],
};
gatsby-node.js
: N/Agatsby-browser.js
: ```import React from 'react'import { Router } from 'react-router-dom'
import { Provider } from 'react-redux'
import createStore from './src/state/createStore'
const store = createStore()
export const replaceRouterComponent = ({ history }) => {
}
The text was updated successfully, but these errors were encountered: