Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement store/cart #4

Open
5 tasks
weotch opened this issue Apr 11, 2022 · 0 comments
Open
5 tasks

Implement store/cart #4

weotch opened this issue Apr 11, 2022 · 0 comments

Comments

@weotch
Copy link
Member

weotch commented Apr 11, 2022

  • Load vuex module from an initialize plugin
  • Remove unrelated code from latest project
  • Create a new package for the env-specific cookie or add to cloak boilerplate helpers
  • Implement lazy hydrating support
  • Consider moving getCart out of the store
    • Like interacting with cookies seems kinda out of the scope of vuex. Maybe the plugin stores the id from the cookie in vue on init and then fetch looks it up from there. Then the store doesn't have to import anything ... seems cleaner IMO.
    • If the id doesn't exist in the store already, fetch will create a new cart.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant