Skip to content

Conversation

JoviDeCroock
Copy link
Member

No description provided.

@changeset-bot
Copy link

changeset-bot bot commented Feb 18, 2023

🦋 Changeset detected

Latest commit: a187f66

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
preact-render-to-string Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Member

@marvinhagemeister marvinhagemeister left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great! Let's add a changeset too

@JoviDeCroock JoviDeCroock merged commit 8cf7cef into master Feb 25, 2023
@JoviDeCroock JoviDeCroock deleted the perf-improvements-v2 branch February 25, 2023 08:19
@github-actions github-actions bot mentioned this pull request Feb 25, 2023
Copy link
Member

@andrewiggins andrewiggins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JoviDeCroock Sorry I'm a little late to the game 😅 I did have a couple of quick questions when you get a chance

: ';');
let suffix = ';';
if (SUFFIX_CACHE[name]) {
suffix = 'px';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does this need to be 'px;' (note the semicolon after the px)?

? 'px;'
: ';');
let suffix = ';';
if (SUFFIX_CACHE[name]) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to check if typeof val === 'number' here as well? If the first call to render is <div style={{ padding: 8 }} /> but the second is <div style={{ padding: '8px' }} />, will it still add the 'px'?

@JoviDeCroock JoviDeCroock mentioned this pull request Feb 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants