Skip to content

Conversation

@jonathan-waarneming-nl
Copy link
Contributor

Because systemFonts changes every rerender, the component needs to update. This is visible when you run the unit test "HtmlPageView > Interactions > When the Show more button is pressed, the content is expanded" with logging on:

 FAIL  src/species/components/__tests__/HtmlPageView.test.tsx
  HtmlPageView
    Rendering
      ○ skipped Collapsed view
      ○ skipped Expanded view
    Interactions
      ✕ When the Show more button is pressed, the content is expanded (83 ms)
      ○ skipped When the Show less button is pressed, the content is collapsed

  ● HtmlPageView › Interactions › When the Show more button is pressed, the content is expanded

    Expected test not to call console.warn().

    If the warn is expected, test for it explicitly by mocking it out using jest.spyOn(console, 'warn').mockImplementation() and test that the warning occurs.

    You seem to update props of the "TRenderEngineProvider" component in short periods of time, causing costly tree rerenders (last update was 46.00ms ago). See https://stackoverflow.com/q/68966120/2779871

@SjaakSchilperoort SjaakSchilperoort force-pushed the feature/fix-small-issues branch from 43a376a to 0f1d758 Compare January 1, 2026 07:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants