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

Add support for onsite content injection #265

Merged
merged 1 commit into from
Dec 31, 2024

Conversation

timowestnosto
Copy link
Contributor

No description provided.

@@ -19,14 +19,16 @@ function RecommendationComponentWrapper(props: {
})
}

function injectPlacements(data: Record<string, unknown>) {
nostojs(api => api.placements.injectCampaigns(data as Parameters<API['placements']['injectCampaigns']>[0]))
Copy link
Contributor

Choose a reason for hiding this comment

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

The type assertation looks a bit hairy but I'm unsure whether we have better options here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

you are right, but the fixes would be in this order

  • fix in client script (alignment between Session API Action Response & placement types)
  • update to nosto-js
  • update to nosto-react

@timowestnosto timowestnosto merged commit 019c692 into master Dec 31, 2024
1 check passed
@timowestnosto timowestnosto deleted the onsitecontent-injection branch December 31, 2024 13:02
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