Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions packages/jsActions/nanoflow-actions-native/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

## [Unreleased]

- Close offline database connection before navigating between pages with OpenURL nanoflow action.

## [7.1.0] Nanoflow Commons - 2026-6-5

### Changed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

// Native platform
if (navigator && navigator.product === "ReactNative") {
const Linking: typeof ReactNative.Linking = require("react-native").Linking;

Check warning on line 27 in packages/jsActions/nanoflow-actions-native/src/external/OpenURL.ts

View workflow job for this annotation

GitHub Actions / Unit tests

Require statement not part of import statement

return Linking.canOpenURL(url).then(supported => {
if (!supported) {
Expand All @@ -42,6 +42,7 @@

// Web platform
if (window) {
await mx.data.closeDbConnection();

@nikolai-paramonov nikolai-paramonov Jun 11, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

window.location.href = url;
return Promise.resolve(true);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ declare namespace mx {
}) => Promise<void>;
}
interface data {
closeDbConnection: () => Promise<void>;
update: (param: { guid?: string | undefined; entity?: string | undefined; callback?: () => void }) => void;
}
interface session {
Expand Down
Loading