Igor
Explore posts from serversKKinde
•Created by Igor on 2/4/2025 in #💻┃support
get organization custom properties
The property I want to get is a simple boolean that tells me the type of the organization.
is_investor
is_investee
is_intermediary
and so on.... If this is not possible or recommended I can handle it differently, just wondering if I should change directions or not
3 replies
Data Race in a useEffect
Problem: If this runs right after I created a project, it will trigger the if statement that sends the user to the review tab:
if (refetchTries >= 2) {
setTab('review')
}
However, if I refresh the page or try again, it will work.
If I run it after I delete a project, the duplicate tab will appear for ~1 second, and then it will go to review, showing that there is a delay for the data to update.
This has not happened before, and I am not sure how I can ensure the data is updated when this runs. Any ideas?2 replies