victorious-library-28522
03/10/2023, 9:07 AMfresh-football-47124
victorious-library-28522
03/10/2023, 9:55 AMgetServerSideGrowthBookContext
):
Is there a way of setting the attributes from client side but loading the features on server?numerous-ambulance-47156
03/10/2023, 2:25 PMtrackingCallback
is never triggeredfuture-teacher-7046
victorious-library-28522
03/13/2023, 5:10 AMnumerous-ambulance-47156
03/13/2023, 8:50 AMweights
(n
) is [0.5, 0.5]
. could you spot the issue?
code sample 1:
(Growthbook source code)
// const weights = [0.5, 0.5];
// const coverage = 1;
let cumulative = 0;
return weights.map((weight) => {
const start = cumulative;
cumulative += weight;
return [start, start + coverage * weight];
});
code sample 2:
(Transpiled code after next build
)
// const n = [0.5, 0.5];
// const t = 1;
let a=0;
return n.map(e=>[a+=e,a+t*e])
@victorious-library-28522 We couldn’t solve the transiplation issue above but we solved the issue via using SSR instead of CSR