Skip to content

Commit

Permalink
fix: Fixed a problem with deep links callbacks being triggered multip…
Browse files Browse the repository at this point in the history
…le times.
  • Loading branch information
Skyost committed Jul 12, 2024
1 parent db2bc6e commit 94f0c29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ class _RouteWidgetState extends ConsumerState<_RouteWidget> {
if (widget.listen) {
if (currentPlatform.isMobile) {
ref.listenManual(appLinksListenerProvider, (previous, next) async {
if (next.valueOrNull == null) {
if (next.valueOrNull == null || previous == next) {
return;
}
Uri uri = next.value!;
Expand Down

0 comments on commit 94f0c29

Please sign in to comment.