in my app, I have a form that can create tickets from any place on site. if the user creates a ticket from another page that is not the tickets page so the user does not see the rendering but if the user creates a ticket from the all ticket page I need to reload to see the new ticket. is this normal behavior to achieve this reload I added a function like so...
function makeRouting() {
const currentPath = window.location.pathname;
if (currentPath === '/ticket') {
router.reload();
} else {
router.push('/ticket');
}
}
as well I tried to use Shallow Routing but it does not solve the use of reloading in the ticket page.