Skip to content

useAccordion thowing errror `type.getCollectionNode is not a function #6633

Answered by snowystinger
ffakira asked this question in Q&A
Discussion options

You must be logged in to vote

Accordion Item would need to implement the same interface as Item (which is a bit hidden as we didn't really support wrapping or creating your own Items for our older Collection implementation) but is here

Item.getCollectionNode = function* getCollectionNode<T>(props: ItemProps<T>, context: any): Generator<PartialNode<T>> {

Creating this is discouraged, though; it's old and is an implementation detail for us.

However, all of that is somewhat irrelevant as Accordion is still in Alpha and is not a priority for us as summary and details provide good native support for accordions, including wor…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ffakira
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants