Use-cases of subscribers for integration extension
The subscribers don't seem to have any context. Because of that I'm unsure how and why one would use subscribers besides the most basic logging to the console.
https://docs.vuestorefront.io/sdk/advanced/extending-module#subscribers
Can this be elaborated?
Vue Storefront Docs
Extending a Module
In most cases, a module exports the base set of communication methods and utilities.
3 Replies
It looks like you can pass in a generic
params
`Yeah, you're right and as mentioned in the docs it's good to use them for logging or collecting analytics data.
Subscribers don't affect the request/response since they are not blocking the request, but simply run in parallel with the request using pub-sub pattern.
Got it. Thanks for the response.