Skip to content

Conversation

vallemar
Copy link
Contributor

@vallemar vallemar commented Apr 15, 2023

I don't know why but this is breaking the hmr in my app, the _sov.get(property) returns undefined and when set to el.style[property] = originalValue; it breaks the app

Close: #1039

@vallemar vallemar marked this pull request as draft April 15, 2023 19:10
@vallemar vallemar marked this pull request as ready for review April 15, 2023 21:18
@vallemar
Copy link
Contributor Author

vallemar commented Apr 15, 2023

I have found the root cause of the problem, the problem was that undefined was being saved when adding the style initially because el.style[property] was inserted and this has no value because it was inserted below. The value that will be added later to el.style[property] is now stored and in the hmr process the undefined value will not be found and it will not fail

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Vue3 inline style HMR error
2 participants