Data fetching inside the render method. #279
Answered
by
icflorescu
Saifurrahmanemon
asked this question in
Q&A
-
I am trying to call the API on every row using the render method. Is there any way to achieve that? |
Beta Was this translation helpful? Give feedback.
Answered by
icflorescu
Apr 27, 2023
Replies: 1 comment 2 replies
-
Why would you want to do that? It's kind of an anti-pattern... |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Correct me if I'm wrong, but as far as I understand, you're going to unconditionally show the particular details for every row anyway.
In which case, why wouldn't you load the nested details upfront and have them in a structure like this: