Skip to content

Instantly share code, notes, and snippets.

@ifiokjr
Last active November 12, 2021 05:55
Show Gist options
  • Select an option

  • Save ifiokjr/00a71a42f474560b85663b8ba8f5c78b to your computer and use it in GitHub Desktop.

Select an option

Save ifiokjr/00a71a42f474560b85663b8ba8f5c78b to your computer and use it in GitHub Desktop.
changes-in-padding-not-rerendering

Padding change not causing a rerender

I'm working on the @skribble.dev project and I want to make note of an issue I've bumped into. I'll refer back to it in the future.

When I update the padding during of the button component, there is a hot reload, but the annotation isn't updated to the new size of the component. Up until now, I've been refreshing when this happens.

It's likely that the resize observer only captures events that trigger an update externally, and internal events like padding changes are not captured.

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