Skip to content

useTracker renders two times at mount, would be nice if it renders only once #439

Description

@Poyoman39

This code renders two times

    const Test = ({ afterMountInc = false }) => {
      renderCount++;
      console.log(renderCount);
      value = useTracker(() => {
        return null;
      }, []);
      return <span>{renderCount}</span>;
    };

    ReactDOM.render(<Test />, container);

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions