Luiz Cláudio

Results 10 comments of Luiz Cláudio

Actually, it's not necessary to use a callback function in this case. You should use a callback function when the **new state depends on the previous one**. For example, if...

Exactly. You need to use a callback function if the new state depends on the most updated version of state. However, in this case, your new state doesn't depend on...

Got it, @rwieruch. Indeed, an error is thrown if the pattern is not matched. Actually, I just wanted to contribute somehow, because I'm not used to sending PR to open...

That's true! Thank you so much, @Haroenv . It works now! I didn't notice it because there are some explicit props at the documentation example [here](https://github.com/algolia/react-instantsearch/blob/b893131bff73127c4b8388d0b0deadfd8d7c3339/examples/next/components/app.js#L53-L59), and the rest of...

@klandell answer works. Thanks! We can go further by getting the type from the theme itself by usiing `typeof`. Considering [klandell example](https://github.com/react-navigation/react-navigation/issues/9161#issuecomment-764922017), we can do something like this in the...

Thanks a lot, folz. I'd tried everything already, but couldn't fix the jump-to-top problem.

Thanks for the examples, @GabrielCastilhoV . Really helpful.

Not sure if we are talking about the same issue, but just in case it is: https://github.com/tailwindlabs/headlessui/discussions/2898