Issue with Empty Ref After Update in TypeScript - Effect Community