Skip to content

Commit

Permalink
fix(rpc): 🐛 DeeplinkRPC calls are correctly redirected to the receiver.
Browse files Browse the repository at this point in the history
  • Loading branch information
Chralu committed Jun 19, 2024
1 parent 756c2fa commit 3bef271
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/router/router.dart
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,9 @@ class RoutesPath {
],
),
],
redirect: (context, state) {
if (deeplinkRpcReceiver.canHandle(state.name)) {
deeplinkRpcReceiver.handle(state.name);
redirect: (context, state) async {
if (deeplinkRpcReceiver.canHandle(state.matchedLocation)) {
await deeplinkRpcReceiver.handle(state.matchedLocation);
}
return null;
},
Expand Down

0 comments on commit 3bef271

Please sign in to comment.