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?

Viewed 1366

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.

1 Answers

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.

Related