Blitz: Enable React Fast Refresh

Created on 28 Apr 2020  路  7Comments  路  Source: blitz-js/blitz

What do you want and why?

We should enable Fast Refresh for apps by default.

Implementation

  1. Add the fastRefresh flag inside the withBlitz config wrapper
  experimental: {
    reactRefresh: true
  }
  1. Upgrade Next.js to latest canary (>= 9.3.7-canary.5)

See here for an explanation: https://github.com/zeit/next.js/pull/12008

good first issue kinfeature-change scopserver statudone

Most helpful comment

Good to enable now if the underlying Next version is ^9.3.7-canary.5 or newer.

All 7 comments

This feature is not ready to be enabled by default. Please do not enable it for all users until (at a minimum) https://github.com/zeit/next.js/pull/12222 has been landed.

@timer Oh, okay! I saw a tweet from Dan asking people to try it out so I assumed it was at least alpha-ready. Thanks so much for the heads up 馃憤

Thanks @timer!

Reopening this because we still want to do it at some point

Good to enable now if the underlying Next version is ^9.3.7-canary.5 or newer.

Awesome, thank you @Timer!!

Thank you very much, @dwightwatson !

Was this page helpful?
0 / 5 - 0 ratings