yobgob / too-many-hooks

Opinionated collection of typed React hooks
https://yobgob.dev/too-many-hooks/
Apache License 2.0
3 stars 5 forks source link

Add useMultiModal hook #66

Open dawsonbooth opened 1 year ago

dawsonbooth commented 1 year ago

Often, multiple modals are shown in sequence, serving as pages to one single conceptual modal. Rather than maintaining state that is updated with each modal action (often leading to the need for type assertions), we should have a hook that allows for a functional "bridge" between pages.