2 Replies
Hi @florent. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
To refresh the page when closing the modal, you can use the
window.location.reload()
function in your handleClose
function. This function will refresh the page when it's called. Here's how you can do it:
Please note that this will cause the entire page to reload, which might not be the best user experience. If you want to update some data on the page, it would be better to refetch that data specifically rather than reloading the entire page.
Unfortunately, the provided extracts do not contain information on how to refetch data with refine. For more information on this, you can check the refine documentation (https://refine.dev/docs).
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------<@1184365192482652173> kapa.ai is still learning and improving, please let us know how it did by reacting below