Data binding manipulations with text metrics does not work

Im using @rive-app/react-canvas package, updated it to the latest version 4.18.8 at the moment. I created a test rive which has a simple block and text next to it. There is a view model instance called “scale”, when I change its value, the block changes its height and text changes its font size. But the problem is, the block does change the height, but text is remaining default.

Here is a code:

export const riveParams: UseRiveParameters = {
  src: "/font_size.riv",
  autoplay: false,
  shouldDisableRiveListeners: true,
  stateMachines: ["State Machine 1"],
  artboard: "Artboard",
  layout: riveLayout(),
};
  const { rive, RiveComponent } = useRive({
    ...riveParams,
    onLoad: () => {
      rive?.resizeDrawingSurfaceToCanvas();
    },
    assetLoader: (asset) => assetLoader(asset, overlayRef, assetsRef),
  });
useEffect(() => {
    if (!rive) return;

    const viewModel = rive.viewModelByName("View Model 1");

    if (viewModel) {
      const instance = viewModel.instance();

      if (!instance) return;
      rive.bindViewModelInstance(instance);
      const fontSize = instance.number("scale");

      if (!fontSize) return;
      fontSize.value = 50;

      console.log(fontSize.value);
    }
  }, [rive]);


In use effect, the value does change and in console log I see that its 50, the block height changes, but the font size is still same. Even more, the font for a second is indeed changes to 50 (like it blicks), but then goes back to its default.

font_size.riv