For discussing the development and usage of Checkout UI extensions, post-purchase extensions, web pixels, Customer Accounts UI extensions, and POS UI extensions
I have my extension targeting 'purchase.checkout.block.render'.
I want to add my new extension on both the 'shipping' page and the 'payment' page, and then use the 'buyer journey' active step to display slight variances of text.
But I'm missing something....
if i import 'useBuyerJourney', and then put this code at the top of my extension:
it displays the log with buyer journey details (4 times, actually) and the 'activeStep' is correct.function App() {const { extension, } = useApi();const journey = useBuyerJourney();console.log("usebuyerJourney:", JSON.stringify(journey),)
const activeStep = useBuyerJourneyActiveStep();console.log("useBuyerJourneyActiveStep:", JSON.stringify(activeStep),)