Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

Current Behavior

I'm struggling to figure out how to duplicate this locally, but I was using 3.0.0-beta9 and upgraded to 4.1 (including upgrading to react 16) and now I get this when I use fetch as google or google's page speed test. I narrowed it down to happening sometime between the 3.0 beta and upgrading to next 3.2.1

I'm worried that it's causing SEO issues. Has anyone else run into this issue?

Steps to Reproduce (for bugs)

Deploy a next site to Netlify at > 3.2.1

Test that site on Google Page Speed insights tool

Context

Your Environment

Tech
Version

next
3.2.1

node
8.4.0

OS
10.12.6

browser
chrome

etc

Issue 2:
Hi. I've switched to 6.0.0 recently and upgraded next-redux-wrapper to the version 2.0.0-beta.2. It assumes using withRedux HOC for the _app.jsx component and react-redux'es connect for pages. Currently this setup breaks hot module replacement, i.e. the console says [HMR] App is up to date, but the page does not update.

I know that there are issues with HMR and legacy decorators, so I've used all possible versions:

1) legacy decorators

./pages/index.jsx

import React, { Component } from 'react'
import { connect } from 'react-redux'

@connect()
export default class Landing extends Component {
render = () => {
return (
<h1>Landing</h1>
)
}
}

2) one-by-one enhancers

./pages/index.jsx

import React, { Component } from 'react'
import { connect } from 'react-redux'

class Landing extends Component {
render = () => {
return (
<h1>Landing</h1>
)
}
}

const ConnectedLanding = connect()(Landing)
export default ConnectedLanding

3) separate files for components and pages

./components/pages/index.jsx

import React, { Component } from 'react'

export default class Landing extends Component {
render = () => {
return (
<h1>Landing</h1>
)
}
}

./pages/index.jsx

import { connect } from 'react-redux'
import Page from '../components/pages/index'

const ConnectedPage = connect()(Page)
export default ConnectedPage

But none of these solutions work. Also, I've tried using both regular redux and fast-redux, no change. Rest of the config looks like this:

./decorators/redux-app.jsx

import { createStore, applyMiddleware, compose } from 'redux'
import thunk from 'redux-thunk'
import withRedux from 'next-redux-wrapper'
import { rootReducer } from 'fast-redux'

let composeEnhancers

if (process.env.NODE_ENV !== 'production') {
composeEnhancers = (typeof window !== 'undefined' && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__) || compose
}

if (process.env.NODE_ENV === 'production') {
composeEnhancers = compose
}

const makeStore = initialState => createStore(
rootReducer,
initialState,
composeEnhancers(applyMiddleware(thunk))
)

const reduxApp = Component => withRedux(makeStore)(Component)

export default reduxApp

./pages/_app.jsx

import React from 'react'
import App, { Container } from 'next/app'
import reduxApp from '../decorators/redux-app'

class CustomApp extends App {
static getInitialProps = async ({ Component, router, ctx }) => {
const pageProps = typeof Component.getInitialProps === 'function'
? await Component.getInitialProps(ctx)
: {}

return {
pageProps
}
}

render = () => {
const { Component, pageProps } = this.props

return (
<Container>
<Component {...pageProps} />
</Container>
)
}
}

const ReduxedApp = reduxApp(CustomApp)
export default ReduxedApp

I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

Hot updates are properly applied on change.

Current Behavior

No hot updates are applied, despite the fact that the console says something like:

[HMR] connected
[HMR] bundle rebuilding
[HMR] bundle rebuilt in 453ms
[HMR] Checking for updates on the server...
[HMR] Updated modules:
[HMR] - ./components/pages/index.jsx
[HMR] - ./pages/index.jsx
[HMR] App is up to date.
[HMR] bundle rebuilding
[HMR] bundle rebuilt in 570ms

Steps to Reproduce (for bugs)

Upgrade to next 6.0.0 and next-redux-wrapper 2.0.0-beta.2

Try to use HMR in connect'ed pages

Your Environment

Tech
Version

next
6.0.0

node
9.11.1

next-redux-wrapper
2.0.0-beta.2

redux
4.0.0

react-redux
5.0.7