React-instantsearch: Failed prop type: Invalid prop `root.Root` warning

Created on 18 Jul 2018  路  6Comments  路  Source: algolia/react-instantsearch

example code causing the issue:

(taken from https://community.algolia.com/react-instantsearch/Getting_started_React_native.html#add-the-%3Cinstantsearch%3E-component)

<InstantSearch appId="latency" apiKey="6be0576ff61c053d5f9a3225e2a90f76" indexName="ikea">
    <Text>Congrats 馃帀! Your application is now connected to Algolia!</Text>
</InstantSearch>

Bug: What is the current behavior?

Warning is being thrown:

Warning: Failed prop type: Invalid prop `root.Root` supplied to `CreateInstantSearch`.
    in CreateInstantSearch (at Search.js:21)
    ... further stack incoming

Bug: What is the expected behavior?

No warning I guess? However, the search still works, it's just a warning, not an error.

Bug: Which versions?

[email protected], [email protected], [email protected]

Most helpful comment

The next version will be released beginning of next week.

All 6 comments

I noticed this when upgrading to [email protected]

Hmm, that prop type seems to be correct, I wonder where that error is coming from. Thanks for reporting. This is indeed just a warning though, so can safely be ignored by you

View now uses React.forwardRef. That means it's type is an object.

Made a Pull Request which explains it: #1461.

Thanks for merging!

thanks @JonnyBurger, I missed some context there, your PR looks good 鉂わ笍

thank you so much for fixing this guys, i sincerely appreciate your effort! i'd have another request, could you please publish the next version with this fix asap? i am experiencing currently a few different issues that i hope this fix might have corrected, but i am not sure yet.

i actually wanted to build from the github master myself, but also ran into some issues here with babel and had no time to look into it so that's why i am asking for a version bump (thank you so much)!

The next version will be released beginning of next week.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

danhodkinson picture danhodkinson  路  3Comments

markmiller21 picture markmiller21  路  3Comments

noclat picture noclat  路  3Comments

developerk786 picture developerk786  路  3Comments

afgoulart picture afgoulart  路  4Comments