Skip to content

Commit

Permalink
fix(gatsby-plugin-preact): fix fast-refresh (#29831)
Browse files Browse the repository at this point in the history
  • Loading branch information
wardpeet committed Mar 1, 2021
1 parent c8bf060 commit 81a3776
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 81a3776

Please sign in to comment.