Skip to content
#

store

Here are 858 public repositories matching this topic...

saleor
purpledot
purpledot commented Jan 27, 2020

What I'm trying to achieve

Create checkout with a checkout line.

Steps to reproduce the problem

  1. checkout = Checkout.objects.create(...)
  2. checkout.lines.create(...) or CheckoutLine.objects.create(checkout=checkout, ...)

OR

  1. checkout = Checkout.objects.create(...)
  2. if checkout: pass

What I expected to happen

Database insertion without additional coun

yannick-milanetto
yannick-milanetto commented Jan 10, 2020

Hello,

I noticed in the doc one very important point:

There is one important rule for this to work: the useMainStore (or any other useStore function) must be called inside of deferred functions

Further in the doc, when speaking about shared getters, we have this example:

import { computed } from '@vue/composition-api'
import { useUserStore } from './user'
import { useCartSt
Fulbert
Fulbert commented Mar 21, 2020

Hello,

Thanks for this awesome tool!

I have a guarded property on my store, selected, which is used only by the UI, and I don't want to sync on Firestore.
If the guards works well, the document is still synced everytime I change the selected value, because of the updated_at and updated_by value.
Of course, I can add the two properties to the guards too, and it works, but I actually

Improve this page

Add a description, image, and links to the store topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the store topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.