Skip to content

Commit

Permalink
fix: dynamic links on cold start (#1376)
Browse files Browse the repository at this point in the history
  • Loading branch information
justinenerio authored Apr 22, 2024
1 parent 88c93e9 commit 9d5ed2c
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ mixin DynamicLinkHandler<T extends StatefulWidget> on State<T> {
super.dispose();
}

@override
void didChangeDependencies() {
super.didChangeDependencies();
WidgetsBinding.instance.addPostFrameCallback((_) => _handle());
}

void _handle() {
sl<DynamicLinksNotifier>().processLink(handleDynamicLink);
}
Expand Down

0 comments on commit 9d5ed2c

Please sign in to comment.