brendangibson
brendangibson

Reputation: 2542

What does "Did not retain recoil value on render, or committed after timeout elapsed. This is fine, but odd. undefined" mean? And how do I fix it?

I am running some react-testing-library tests and getting warnings for Did not retain recoil value on render, or committed after timeout elapsed. This is fine, but odd. undefined. What does this mean? And how do I fix it?

I have just added a new recoil atom.

I am using recoil 0.3.0.

Upvotes: 2

Views: 1727

Answers (1)

Johannes Klauß
Johannes Klauß

Reputation: 11020

This is a well known issue that will be fixed in the next released. You can ignore this warning as mentioned in the corresponding Github issue. So there is no problem with your code its just a warning that recoil emits unnecessarily.

Upvotes: 7

Related Questions