feat: enhance navigation by adding recipe links in inventory and pantry screens
This commit is contained in:
@@ -218,7 +218,7 @@ class _RecipeEditScreenState extends ConsumerState<RecipeEditScreen> {
|
||||
);
|
||||
ref.invalidate(recipeDetailProvider(widget.recipeId));
|
||||
ref.invalidate(recipesProvider);
|
||||
if (mounted) context.pop();
|
||||
if (mounted) context.go('/recipes/${widget.recipeId}');
|
||||
} on ApiException catch (e) {
|
||||
if (e.type == ApiErrorType.unauthorized) {
|
||||
await ref.read(authStateProvider.notifier).logout();
|
||||
|
||||
Reference in New Issue
Block a user