-
-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
Edit: Not suggesting adding a FAQ page anymore, so I recast the issue. I've preserved the previous text in case you're curious what it was previously.
Old proposal
I'm collecting things for a potential FAQ page. I've got a few already, but I know there's got to be more between here and Gitter. This would include both TS-related and core Mithril-related stuff, so we have an easy, always-up-to-date page on commonly asked questions here.- Classes as component factories = bad: Object.create used in initComponent messes up state mithril.js#1926
- What
vnode.state
is in various places, including in the various component types as well as in the vnode attrs themselves - this is probably second only to routing in its complexity, and it's tripped people up more than once. Why we include almost everything - the excess isn't really as much as you might thinkA conversation with @barneycarroll reminded me this isn't quite set in stone enough to be on a FAQ page as a canned answer.
There's a couple things I've found that need documented, and I'm pretty sure there's more that also need added.
- Anti-pattern: Classes as component factories = bad: Object.create used in initComponent messes up state mithril.js#1926
- What
vnode.state
is in various places, including in the various component types as well as in the vnode attrs themselves. - We need to show people how to install the typings and show them where to report typings issues. This hasn't shown up in the GH issues much, but many people have asked on Gitter where they are. It's not exactly obvious from the mithril.js.org website that we generally support them as a community-maintained thing, and I think we should fix that.
boazblake
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
Low priority