Updating a Ref with an Effect in Typescript - Effect Community