core-plugin-api: add clarifying comment

Signed-off-by: Vincenzo Scamporlino <vincenzos@spotify.com>
This commit is contained in:
Vincenzo Scamporlino
2023-04-26 22:21:37 +02:00
parent f9e4c279e2
commit bf2c56797e
@@ -53,6 +53,8 @@ export function useAnalytics(): AnalyticsTracker {
}
const tracker = getTracker();
// this is not ideal, but it allows to memoize the tracker
// without explicitly set the context as dependency.
tracker.setContext(context);
return tracker;