mui / mui/base-ui

[internal] Enforce hook parameters to use required values

Open
#856 2 comments 0 reactions 0 assignees View on GitHub
internal scope: all components
Dominant language
TypeScript
Stars
10.9k
Forks
543
Avg merge
1d 20h
Merged PRs (30d)
101

Description

Hooks aren't public APIs and don't need optional values. This change will ensure all component props that are needed by the hook are forwarded correctly to prevent bugs. Components should be responsible for defining default values in their props which are then forwarded to the hook.

**Search keywords**:

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.