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

listItems typing fix #3176

Merged
merged 11 commits into from
Dec 12, 2021
Merged

listItems typing fix #3176

merged 11 commits into from
Dec 12, 2021

Conversation

askvortsov1
Copy link
Sponsor Member

Currently, listItems is causing issues because it does not accept all Mithril.Children. This PR refactors its internals and types to support any input adhering to Mithril.Children. It also cleans up some messy internal logic.

js/src/common/helpers/listItems.tsx Outdated Show resolved Hide resolved
js/src/common/helpers/listItems.tsx Outdated Show resolved Hide resolved
js/src/common/helpers/listItems.tsx Outdated Show resolved Hide resolved
js/src/common/helpers/listItems.tsx Outdated Show resolved Hide resolved
js/src/common/helpers/listItems.tsx Outdated Show resolved Hide resolved
js/src/common/helpers/listItems.tsx Outdated Show resolved Hide resolved
askvortsov1 and others added 10 commits November 25, 2021 15:44
Co-authored-by: David Wheatley <hi@davwheat.dev>
Co-authored-by: David Wheatley <hi@davwheat.dev>
Co-authored-by: David Wheatley <hi@davwheat.dev>
Co-authored-by: David Wheatley <hi@davwheat.dev>
Co-authored-by: David Wheatley <hi@davwheat.dev>
@SychO9 SychO9 added this to the 1.2 milestone Dec 12, 2021
@askvortsov1 askvortsov1 merged commit 580be37 into master Dec 12, 2021
@askvortsov1 askvortsov1 deleted the as/listitems-typing-fix branch December 12, 2021 19:51
askvortsov1 added a commit that referenced this pull request Dec 13, 2021
#3176 accidentially stopped adding a `key` attribute to wrappers of non-vnode inputs. This resulted in "all or no vnodes must have keys" errors.
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.

None yet

4 participants