Skip to content

Commit

Permalink
fix: radialGradient cache key was using linearGradient (#474)
Browse files Browse the repository at this point in the history
Causing issues where cached linearGradients is shared with
radialGradient
  • Loading branch information
wouterlucas authored Jan 8, 2025
2 parents 422d51e + 8edc3f2 commit 6174898
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@ export class RadialGradientEffect extends ShaderEffect {

static override getEffectKey(props: RadialGradientEffectProps): string {
if ((props.colors as unknown as ShaderEffectValueMap).value as number[]) {
return `linearGradient${
return `radialGradient${
((props.colors as unknown as ShaderEffectValueMap).value as number[])
.length
}`;
}
return `linearGradient${props.colors!.length}`;
return `radialGradient${props.colors!.length}`;
}

static override resolveDefaults(
Expand Down

0 comments on commit 6174898

Please sign in to comment.