Skip to content

Enhancement [DEV-13571] Data bite styles - #3015

Open
jayb wants to merge 11 commits into
devfrom
data-bite-styles
Open

Enhancement [DEV-13571] Data bite styles#3015
jayb wants to merge 11 commits into
devfrom
data-bite-styles

Conversation

@jayb

@jayb jayb commented Aug 25, 2026

Copy link
Copy Markdown
Collaborator

Summary

Adds new TP5-based styling options to data bites.

Testing Steps

TK

@jayb
jayb force-pushed the data-bite-styles branch from 2afc964 to 2f52331 Compare August 25, 2026 19:05
@github-actions

github-actions Bot commented Aug 25, 2026

Copy link
Copy Markdown

React Doctor found 1 new issue in 1 file · 1 warning · score 41 / 100 (Critical) · 2 fixed · vs dev

1 warning

components/HeaderThemeSelector/HeaderThemeSelector.tsx

  • ⚠️ L44 Pure function rebuilt every render prefer-module-scope-pure-function

Reviewed by React Doctor for commit b118b58. See inline comments for fixes.

onThemeSelect(theme)
}

const preventLabelClickSelection = (e: React.MouseEvent) => {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

React Doctor · react-doctor/prefer-module-scope-pure-function (warning)

preventLabelClickSelection inside HeaderThemeSelector uses no local state but is rebuilt on every render, so it wastes work & breaks memoized children. Move it to the top of the file, outside the component.

Fix → Move the function above the component, at the top of the file. It doesn't use local state, so rebuilding it each update is wasted work.

Docs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant