Skip to content

Conversation

@KrumTy
Copy link
Collaborator

@KrumTy KrumTy commented Nov 12, 2025

What

I noticed FeatureFlagComponent is overcomplicated. There's no need of cloning, arrays, mapping, function calls.

Testing

Components wrapped in FeatureFlagComponent show up correctly

@github-actions
Copy link
Contributor

Code Coverage - Frontend unit tests

St.
Category Percentage Covered / Total
🟢 Statements 82.6% 20573/24908
🟡 Branches 67.73% 8777/12958
🟡 Functions 77.27% 5537/7166
🟢 Lines 83% 20144/24269

Test suite run success

5270 tests passing in 689 suites.

Report generated by 🧪jest coverage report action from 6e44c8f

@KrumTy KrumTy marked this pull request as ready for review November 12, 2025 07:37
) : (
cloneElement(children)
)
return <>{children}</>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
return <>{children}</>
return children

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The fragment is what makes the function’s return type a JSX.Element in a type-safe way. If we drop it, we need to assert types it seems.

@KrumTy KrumTy merged commit 5d4eb48 into main Nov 12, 2025
18 checks passed
@KrumTy KrumTy deleted the fe/improve-ff-component branch November 12, 2025 08:18
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.

4 participants