Which gives me the following error:
Invalid prop: type check failed for prop "query". Expected Function, got Undefined
If I remove the parameter and hardcode my id in the findOne function it works as I expected. Is there any way to pass a variable into my getProduct function?
I just redesigned my code and passed my id into a product component where I subbed and rendered the product. That's probably what I should have done from the beginning.
Hi,
Thanks for som great updates to this libraray.
Im trying to do this:
And then:
Which gives me the following error:
Invalid prop: type check failed for prop "query". Expected Function, got Undefined
If I remove the parameter and hardcode my id in the
findOne
function it works as I expected. Is there any way to pass a variable into my getProduct function?