Skip to content

Commit

Permalink
fix(gatsby-plugin-preact): fix fast-refresh (#29831) (#29860)
Browse files Browse the repository at this point in the history
(cherry picked from commit 81a3776)

Co-authored-by: Ward Peeters <ward@coding-tech.com>
  • Loading branch information
GatsbyJS Bot and wardpeet authored Mar 1, 2021
1 parent e7453c3 commit e8a7e3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/gatsby/cache-dir/fast-refresh-overlay/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function DevOverlay({ children }) {
const [state, dispatch] = React.useReducer(reducer, initialState)

React.useEffect(() => {
const gatsbyEvents = window._gatsbyEvents
const gatsbyEvents = window._gatsbyEvents || []
window._gatsbyEvents = {
push: ([channel, event]) => {
if (channel === `FAST_REFRESH`) {
Expand Down

0 comments on commit e8a7e3b

Please sign in to comment.