fix: repeat must not mutate its result object in place (#785)#787
fix: repeat must not mutate its result object in place (#785)#787thetarnav merged 2 commits intosolidjs-community:mainfrom
Conversation
🦋 Changeset detectedLatest commit: 0192f34 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
|
This is actually kind of broken still, if the array returned from |
|
That’s fine |
|
Is it appropriate to narrow the return type to I've narrowed the return type in the most recent batch of commits, and I've fixed a bug in my implementation and added another test. I'm not sure if you'd rather have a single commit in the PR or multiple? |
|
readonly arrays are not allowed by JSX types, so I wouldn't do that. |
|
Ah is it intended then that |
Fixes #785
This substantially rewrites
repeatto be more straight-forward with fewer closures, unlike #786 which is more conservative.