cssinjs/jss

Hot reload not working in Gatsby

Open

#1,079 建立於 2019年4月4日

在 GitHub 查看
 (2 留言) (1 反應) (0 負責人)JavaScript (7,000 star) (434 fork)batch import
bughelp wanted

描述

Expected behavior: After updating a style object and saving the js file, it is expected styles will update in the browser via hot reloading in GatsbyJS.

Describe the bug: After updating a style object and saving the js file, the Gatsby website does not hot reload styles. On a hard page refresh (cmd + r) the new styles load as expected.

Codesandbox link: https://codesandbox.io/embed/github/codeithuman/gatsby-jss-hot-reload/tree/master/ https://github.com/codeithuman/gatsby-jss-hot-reload

Versions (please complete the following information):

  • jss: v10.0.0-alpha.16
  • Browser [e.g. chrome, safari]: Chrome
  • OS [e.g. Windows, macOS]: macOS

貢獻者指南

Hot reload not working in Gatsby · cssinjs/jss#1079 | Good First Issue