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

Remove tagging and align API types #82

Merged
merged 2 commits into from
Jun 19, 2024
Merged

Remove tagging and align API types #82

merged 2 commits into from
Jun 19, 2024

Conversation

timowestnosto
Copy link
Contributor

No description provided.

@@ -39,14 +39,13 @@ export default function NostoProduct(props: {
useNostoApi(
async (api) => {
const data = await api.defaultSession()
.viewProduct(tagging?.productId ?? product)
.viewProduct(tagging ?? product)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this will supply the full product tagging first and then fallback to productId

@@ -13,8 +13,8 @@ import { useDeepCompareEffect } from "../utils/hooks"
*
* @group Essential Functions
*/
export default function NostoSession(props: { cart: Cart; customer: Customer }) {
const { cart, customer } = props
export default function NostoSession(props?: { cart?: Cart; customer?: Customer }) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

makes both cart and customer optional

@timowestnosto timowestnosto changed the title Remove tagging Remove tagging and align API types Jun 18, 2024
@timowestnosto timowestnosto merged commit 6f27ad9 into master Jun 19, 2024
1 check passed
@timowestnosto timowestnosto deleted the tagging-removal branch June 19, 2024 07:15
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.

3 participants