#RevalidatePath and delay on UI Update.

7 messages · Page 1 of 1 (latest)

hallow fractalBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

proud drum
#

I would expect that the new workExperience (lisää työkokemus) appears same time as the button loading ends, or atleast almost same time, but now it seems to have quite long delay 2-3 second?

proud drum
#

Allright this got fixed?

Im using mantine and i added useDisclousure instead of useState and it suddenly started working

 //const [isLoading, setIsLoading] = React.useState<boolean>(false);
  const [loading, { toggle }] = useDisclosure();

  async function onClick() {
    //setIsLoading(true);
    toggle();
    const value = await createAction(initialPayload);
    toggle();
    // setIsLoading(false);
    console.log('valmis', value);
    // Timeout duration in milliseconds
  }
proud drum
#

There still seems to be quite long load times on certain parts of the code where i update the database, but that is probabyl normal?

proud drum
#

Anyone got suggestion how to deal with this kind problem. This seems to occur on few different places on My project.
-loading indicator stops showing loading state, 1-2 second later ui updates with revalidatepath.
There Time between The loading state being ready and updating ui is too long

#

This was not a problem when i had local database, but now i'm using vercel postgres database and this problem occured.

proud drum
#

Bump