mui / mui/base-ui

[dialog] Internal api exposed by handle

Open
#4,158 3 comments 0 reactions 0 assignees View on GitHub
component: dialog
Dominant language
TypeScript
Stars
10.9k
Forks
543
Avg merge
1d 20h
Merged PRs (30d)
101

Description

# Bug report

## Current behavior

I can access api such as `handle.store.useState('activeTriggerId')`

## Expected behavior

I'm not really complaining, but I'm guessing this might not be intentional :-)

## Reproducible example

https://stackblitz.com/edit/vitejs-vite-uk2kkefj?file=src%2FApp.tsx,package.json,node_modules%2F%40base-ui%2Freact%2Fnode_modules%2F%40base-ui%2Futils%2Fesm%2Fstore%2FReactStore.d.ts
## Base UI version

For example v1.2.0

## Which browser are you using?

Chrome

## Which OS are you using?

macOS

## Which assistive tech are you using (if applicable)?

n/a

## Additional context

This likely applies to other components with handles. If this _is_ intentional, that would be good to know because some of this api might come in handy. I'm mostly looking for clarity on if using this api is supported/expected or not.

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.