Skip to content

Conversation

@afirlejczyk
Copy link
Contributor

Add user groupToken to state, cache result with groupToken.

Copy link
Collaborator

@pkarw pkarw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please clean up search.js from the content specific parameters - we should operate on groupId and groupToken on the higher level; this helper should be content agnostic

elasticQuery.body.groupToken = rootStore.state.user.groupToken
}

/* use only for cache */
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This shouldn’t be here - search.js should not now about any specific content of the query. Please move it one level higher - on the hashing level

Add user groupToken to state, cache result with groupToken.
@pkarw pkarw merged commit 5ecc013 into vuestorefront:develop Aug 23, 2018
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

Successfully merging this pull request may close these issues.

2 participants