Skip to content

Commit eea5707

Browse files
authored
[OFF-873]: Close offline DB connection when navigating between pages (#524)
2 parents 9b973b4 + ac30245 commit eea5707

3 files changed

Lines changed: 4 additions & 0 deletions

File tree

packages/jsActions/nanoflow-actions-native/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66

77
## [Unreleased]
88

9+
- Close offline database connection before navigating between pages with OpenURL nanoflow action.
10+
911
## [7.1.0] Nanoflow Commons - 2026-6-5
1012

1113
### Changed

packages/jsActions/nanoflow-actions-native/src/external/OpenURL.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ export async function OpenURL(url?: string): Promise<boolean> {
4242

4343
// Web platform
4444
if (window) {
45+
await mx.data.closeDbConnection();
4546
window.location.href = url;
4647
return Promise.resolve(true);
4748
}

packages/jsActions/nanoflow-actions-native/typings/mx.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ declare namespace mx {
99
}) => Promise<void>;
1010
}
1111
interface data {
12+
closeDbConnection: () => Promise<void>;
1213
update: (param: { guid?: string | undefined; entity?: string | undefined; callback?: () => void }) => void;
1314
}
1415
interface session {

0 commit comments

Comments
 (0)