unyt-org / datex-core-js-legacy

DATEX Core Library for JavaScript (legacy), fully implemented in TypeScript, used by the UIX Framework
https://unyt.org
3 stars 0 forks source link

Indirect references lead to problems when restoring pointers #94

Open benStre opened 8 months ago

benStre commented 8 months ago

When restoring a StorageSet from an SQL db storage location, the corresponding pointer is assigned to a new id, although the old id is still referenced in the storage. This only happens when Datex.Runtime.OPTIONS.INDIRECT_REFERENCES is enabled. I don't think this is a general problem when indirect references are enabled, but this seems to be an edge case where it leads to problems.

Until this is not fixed, we cannot enable INDIRECT_REFERENCES per default.