Skip to content

Commit 1061042

Browse files
furkanarabaciclaude
andcommitted
Document Nanoflow Commons storage limitations for OFF-843
Add comprehensive Limitations section explaining that Get/Set storage item actions use native encrypted async storage (key-value), which is separate from Mendix offline database. Key points documented: - No association support - only entity data is serialized - No entity access rules - bypasses Mendix data layer - Page state dependency - cleared on account switch - Manual association reconstruction required Added warning alert directing users to offline database for relational data needs. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 7cf71f9 commit 1061042

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

content/en/docs/marketplace/platform-supported-content/modules/nanoflow-commons.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,21 @@ The [Nanoflow Commons](https://marketplace.mendix.com/link/component/109515/) mo
4848
| | Get platform |
4949
| | Wait |
5050

51+
### Limitations of Get/Set Storage Item Actions {#limitations}
52+
53+
The **Get storage item** and **Set storage item** actions use the device's native encrypted async storage mechanism (key-value storage). This storage is completely separate from the Mendix offline database and does not have any relationship with Mendix's entity model, entity access rules, or association capabilities.
54+
55+
Key limitations:
56+
57+
* **No association support** – When you store entities using **Set storage item object** or **Set storage item object list**, only the entity data itself is serialized and stored. Entity associations are not preserved. The storage mechanism has no concept of Mendix associations, referenced entities, or relational data structures.
58+
* **No entity access rules** – Security and entity access rules defined in your domain model do not apply to data stored in device storage. The storage actions bypass the Mendix data layer entirely.
59+
* **Page state dependency** – Mendix internally maintains a "page state" that tracks associated entities when objects are loaded into memory. This page state is session-scoped and is cleared when the user signs out or switches accounts on a native device. Any associations that depend on this page state will be lost when the session ends.
60+
* **Manual association reconstruction required** – If your application needs to work with associated entities after retrieving objects from local storage, you must explicitly retrieve and reconstruct those associations in your nanoflow logic. For example, if Entity A references Entity B, you must separately retrieve Entity B after loading Entity A from storage.
61+
62+
{{% alert color="warning" %}}
63+
The local storage actions are intended for simple key-value storage use cases such as caching user preferences, temporary state, or serialized data that does not rely on associations. For complex relational data or entities that require association traversal, use Mendix's offline database capabilities instead of the storage item actions.
64+
{{% /alert %}}
65+
5166
## Read More
5267

5368
* [How to Build JavaScript Actions: Part 1 (Basic)](/howto/extensibility/write-javascript-actions/)

0 commit comments

Comments
 (0)