-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RHL / HMR does not reload #5
Comments
Thanks for reporting! Are you proposing that we turn HMR off for all |
sorry the problem for me has to do with this gatsby/issues/11934... your plugin is working fine! |
Hello first of all, great project! I am using gatsby with react easy state. As of this version Props passed to a styled` component are not hot updated if they are wrapped with view from react easy state.. For example: Box.js import { styled } from "linaria/react"
const Box = styled.div`
color: ${(props) => (props.color ? props.color : "red")};
export default Box then i consume index.js import { view } from 'react-easy-state'
export default view(() => {
const classColor = css`
color: green;
`
return (
<Box padding={[30, 2, 10, 20]}>
<div className={classColor}>
<h1>About</h1>
</div>
</Box>
)
}) If I change the classColor it updates. |
Thanks for providing more details, I'll leave this open even though I'm not sure if this is specific to my Linaria integration or something else. I have to be honest though that I don't know how to debug hot reloading, I was always using tools that already had it built-in. |
hi thank you me either.. i stripped out linaria completely.. problem persits so I am closing here. |
Hello, I am having trouble with the HMR. Changes to styles are not updated.
The cause is probably the same as gatsbyjs/gatsby#11032.
Could this be the default behaviour of the plugin?
The text was updated successfully, but these errors were encountered: