···180}) {
181 const parentContext = useContext(Context)
182183+ /**
184+ * Side-effect: we need to synchronously set this during the
185+ * same render cycle. It does not trigger a re-render, it just
186+ * sets properties on the singleton GrowthBook instance.
187+ */
188+ setAttributes(parentContext.metadata)
189+190 useEffect(() => {
191 feats.setTrackingCallback((experiment, result) => {
192 parentContext.metric('experiment:viewed', {
···195 })
196 })
197 }, [parentContext.metric])
0000198199 const childContext = useMemo<AnalyticsContextType>(() => {
200 return {