-
Notifications
You must be signed in to change notification settings - Fork 5
feat: Add session query and run session query after change postal code #392
Conversation
✅ Deploy Preview for basestore ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
Gatsby Cloud Build Reportbasestore 🎉 Your build was successful! See the Deploy preview here. Build Details🕐 Build time: 10m PerformanceLighthouse report
|
Preview is readyThis pull request generated a Preview👀 Preview: https://preview-392--base.preview.vtex.app |
309a8bd
to
65e9324
Compare
package.json
Outdated
@@ -27,9 +27,10 @@ | |||
"@envelop/graphql-jit": "^1.1.1", | |||
"@envelop/parser-cache": "^2.2.0", | |||
"@envelop/validation-cache": "^2.2.0", | |||
"@faststore/api": "^1.6.7", | |||
"@faststore/api": "https://pkg.csb.dev/vtex/faststore/commit/a83409a6/@faststore/api", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remember to fix it.
6943562
to
5e5844c
Compare
@@ -29,7 +29,7 @@ export const useProduct = <T extends BrowserProductQueryQuery>( | |||
return { | |||
locator: [ | |||
{ key: 'id', value: productID }, | |||
{ key: 'channel', value: channel }, | |||
{ key: 'channel', value: JSON.parse(channel).salesChannel }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This parsing should happen on the api, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, but the api doesn't handle it, now.
92f9d23
to
3d7fb35
Compare
fd14337
to
e657682
Compare
3b89955
to
a1596fa
Compare
@tlgimenes Fixed all comments |
a1596fa
to
4e4972d
Compare
c119b0f
to
20a2d0f
Compare
@tlgimenes can i merge it?! Is ok for you, right now? |
20a2d0f
to
7edaf5f
Compare
Co-authored-by: Larícia Mota <laricia.mota@vtex.com.br>
7edaf5f
to
1a2dcd6
Compare
Page result - https://base.vtex.app/
Page result - https://sfj-1a2dcd6--base.preview.vtex.app/
|
What's the purpose of this pull request?
This PRs adds the session region for VTEX platform and runs the session query when the postal code changes.
How does it work?
When the user changes the postal code, fetches a new channel that contains regionId as value.
How to test it?
Set a valid postal code in the postal code and press
Enter
Also, test the search, add to cart.
References
Checklist