package ocsipersist
The variable store allows for the persistent storage of individual variables. Relies on Stdlib.Marshal
for (de)serialisation, which entails the same limitations as for the Polymorphic
frontend. If this is an issue you can rely on Functorial
frontend instead (see TABLE.Variable
).
Data are divided into stores. Create one store for your project, where you will save all your data.
make_persistent store name default
find a persistent value named name
in store store
from database, or create it with the default value default
if it does not exist.
Same as make_persistent but the default value is evaluated only if needed
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>