-
loadable.state being “hasError” or “hasData” feels a bit off to me. How about renaming it to something simpler like “error” or “success”? What do you think? |
Beta Was this translation helpful? Give feedback.
Answered by
dai-shi
Dec 10, 2024
Replies: 1 comment 2 replies
-
It's kind of too late. Migration isn't very easy and I don't know if it's worth it. It's not that bad from the type definition. Maybe jotai/src/vanilla/utils/loadable.ts Lines 11 to 14 in d2a42f7 |
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
That's technically possible. I would like to get more feedback on this renaming.