add form to edit subscription
This commit is contained in:
@@ -55,8 +55,13 @@ export async function loader({ params, request, context }: Route.LoaderArgs) {
|
||||
|
||||
export function shouldRevalidate({
|
||||
currentParams,
|
||||
nextParams
|
||||
nextParams,
|
||||
actionResult
|
||||
}: ShouldRevalidateFunctionArgs) {
|
||||
if (actionResult?.ok) {
|
||||
return true
|
||||
}
|
||||
|
||||
return currentParams.id !== nextParams.id
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user