diff --git a/providers-sdk/v1/plugin/runtime.go b/providers-sdk/v1/plugin/runtime.go index 094b09099a..f44a7741c1 100644 --- a/providers-sdk/v1/plugin/runtime.go +++ b/providers-sdk/v1/plugin/runtime.go @@ -242,6 +242,7 @@ func GetOrCompute[T any](cached *TValue[T], compute func() (T, error)) *TValue[T res := &TValue[T]{Data: x, Error: err} if err != NotReady { res.State = StateIsSet | StateIsNull + (*cached) = *res } return res }