Skip to content

Material icons disappear on re-render #39

@Syynth

Description

@Syynth

Minimal reproduction
https://github.com/Syynth/reactunity-icon-bug

import { Renderer } from '@reactunity/renderer';
import { useState } from 'react';
import './index.scss';

function App() {
  const [count, setCount] = useState(0);
  return <icon onPointerClick={() => setCount(count + 1)}>house</icon>;
}

Renderer.render(<App />);

Depending on the icon, in Unity I can see some text in the TMP component inspector, and after clicking the icon, that text has been cleared.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions