Class names are changed in the styled-component example (live demo).
This is weird behavior because Hooks would shallow compare all entries of the second argument in and triggered by its result.
If there is an inevitable reason for the style to update even though the result is the same, the hook should return an immutable object for ease of use.
Class names are changed in the styled-component example (live demo).
This is weird behavior because Hooks would shallow compare all entries of the second argument in and triggered by its result.
If there is an inevitable reason for the style to update even though the result is the same, the hook should return an immutable object for ease of use.