Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove downlevelIteration and traverse iterator manually #2181

Merged
merged 1 commit into from
Oct 4, 2022

Conversation

huozhi
Copy link
Member

@huozhi huozhi commented Oct 3, 2022

Closes #2180

Added the downlevelIteration flag when implementing the mutation filter. But swc compiles it to array-like traversal when target is es5. So we remove the flag from tsconfig.json now and then manually iterate the map iterator returning from map.keys()

@codesandbox-ci
Copy link

codesandbox-ci bot commented Oct 3, 2022

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 5a53080:

Sandbox Source
SWR-Basic Configuration
SWR-States Configuration
SWR-Infinite Configuration
SWR-SSR Configuration
SWR-Basic (forked) Issue #2180

@huozhi huozhi marked this pull request as ready for review October 3, 2022 20:59
@huozhi huozhi requested a review from shuding as a code owner October 3, 2022 20:59
@huozhi huozhi merged commit d32607f into main Oct 4, 2022
@huozhi huozhi deleted the traverse-iterator branch October 4, 2022 13:33
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.

Mutate filter function doesn't work in v2.0.0-beta.7
2 participants