virgo
virgo
Additionally, if you prefer not to use `useModal`, that's also an option. ```typescript import { show, DispatchContext } from '@ebay/nice-modal-react' const dispatch = useContext(DispatchContext) show(Dialog, { name: 'hello world' },...
Perhaps we can provide a hook to automatically bind the dispatch. ```typescript const { show, hide, remove, Provider } = useProvider() ``` Of course, the naming still needs consideration.
I kept the `deprecated_dispatch` approach for progressive enhancement, ensuring that the previous code can still run perfectly. However, I'm not sure if `deprecated` is the right term.
> Any update on this? No one handles this