Custom page fetch data only after refresh

Hi,

In my WP CMS I created a few pages under “pages label”. (screenshot attached below).
From some reason, when I try to access to this pages from my frontity theme, the data doesn’t fetched.
BUT, if I refresh the browser, they working fine.

How can I solve this issue ?..
This is the link for the repository.

TNX !

Your repo is not public

I changed repo permission to private since the problem was solved. (I forgot to to use Loading component in case the “isFetching” flag is true.)

Hi,

Thanks can you mark the issue as solved on your last answer please.

This lets other people know what the fix is.

Regards
J

Done