i have this function ```tsx
const handleJoinGroup = () => {
const g = group();
const user = session.user();
if (!g || !user || !user.username || isMember()) return;
void joinGroup(z, group()?.id ?? '', user.id, user.username);
navigate(`/group/${g.id}`);
};
in this case, the joinGroup function will result in a signal update, which then results in a ui update
i want the user to navigates away before the ui update, otherwise they see a flash of a view for their new state before the nav happens. this is *fine* but not great ux. i've tried wrapping this in a startTransition, but i don't see much happening
one option is to navigate before the joinGroup call. this is fine because joingroup is very fast, but it feels wrong to send the user off before the operation to actually grant them access there is begun. does anyone have thoughts?
