remapping gql from placeholder to $me.store
This commit is contained in:
@ -14,8 +14,8 @@
|
||||
{/if}
|
||||
<br />
|
||||
dataTest:
|
||||
{#if $me.x}
|
||||
{JSON.stringify($me.x)}
|
||||
{#if $me.store}
|
||||
{JSON.stringify($me.store.test)}
|
||||
{/if}
|
||||
</section>
|
||||
</div>
|
||||
|
@ -60,13 +60,15 @@
|
||||
subscribeAndMapQueries(component.id, component.data.map);
|
||||
}
|
||||
if (component.data?.gql) {
|
||||
getComposerStore(component.id).update((storeValue) => ({
|
||||
...storeValue,
|
||||
x: {
|
||||
...storeValue.x,
|
||||
...component.data.gql
|
||||
}
|
||||
}));
|
||||
getComposerStore(component.id).update((storeValue) => {
|
||||
return {
|
||||
...storeValue,
|
||||
store: {
|
||||
...storeValue.store,
|
||||
...component.data.gql
|
||||
}
|
||||
};
|
||||
});
|
||||
}
|
||||
}
|
||||
getComposerStore(component.id).update((storeValue) => ({
|
||||
|
Reference in New Issue
Block a user