Skip to content

Commit

Permalink
fix(gatsby-plugin-preact): fix fast-refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
wardpeet committed Feb 28, 2021
1 parent e95a9f8 commit 7f53f23
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 7f53f23

Please sign in to comment.