Skip to content

Readonly arrays#2295

Open
Andarist wants to merge 10 commits intomainfrom
readonly-arrays
Open

Readonly arrays#2295
Andarist wants to merge 10 commits intomainfrom
readonly-arrays

Conversation

@Andarist
Copy link
Member

It's a continuation of #2057

@changeset-bot
Copy link

changeset-bot bot commented Mar 17, 2021

🦋 Changeset detected

Latest commit: c924d4f

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

This PR includes changesets to release 10 packages
Name Type
@emotion/cache Patch
@emotion/css Patch
@emotion/native Patch
@emotion/react Patch
@emotion/serialize Patch
@emotion/utils 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

@codesandbox-ci
Copy link

codesandbox-ci bot commented Mar 17, 2021

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit c924d4f:

Sandbox Source
Emotion Configuration

element: StylisElement,
index: number,
children: Array<StylisElement>,
children: ReadonlyArray<StylisElement>,
Copy link
Member

Choose a reason for hiding this comment

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

Changing these to Readonly seem wrong? Aren't these arrays mutable?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yep, you are right 👍

* @typeparam AdditionalProps Additional props to add to your styled component
*/
<AdditionalProps extends {}>(
<AdditionalProps extends {} = {}>(
Copy link
Member

Choose a reason for hiding this comment

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

What's this for?

Copy link
Member Author

Choose a reason for hiding this comment

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

It's leftover that I've missed when doing this revert: 7135e61

The other overload has this and this one seemed to have at the time when #2057 was created. It was removed as part of this PR: 0f3a2d3#diff-3fae48ecece75c5d911928f5c96c7292ac893baae5232e9868e68446de341401R93

I'll remove it - nice catch 👍

@emmatown emmatown enabled auto-merge (squash) March 30, 2021 11:07
@emmatown emmatown disabled auto-merge March 30, 2021 11:14
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.

2 participants