Jotai Bug?
Hey, anyone here that has worked with Jotai and is willing to lend me a quick hand about a bug I'm running into? been trying to debug this for 10h and I just don't understand.
I have a simple set up that consists of three parts.
1.- API Calls to fetch an array of data
2.- atom with query that calls the data
3.- a derived atom that spreads the array and joins it with some default data ( for the sake of this example, we'll only use the data returned from the api)
This is the code:
The issue is the following when checking in the
fetchTokens
function, the console log doesn't find any data, but when checking in the allTokensListAtom
function, it does find a result. I have absolutely no idea how this is happening.
The atoms are not being set anywhere, only being read.0 Replies