app/assets/lookbook/js/stores/pages.js in lookbook-0.9.8 vs app/assets/lookbook/js/stores/pages.js in lookbook-1.0.0.beta.0
- old
+ new
@@ -1,5 +1,7 @@
-export default function createNavStore(Alpine) {
+import { prefixString } from "../helpers/string";
+
+export default function initPagesStore(Alpine, { prefix }) {
return {
- embeds: {},
+ embeds: Alpine.$persist({}).as(prefixString("pages-embeds", prefix)),
};
}