In this episode, we're diving into some slightly more advanced modal flows. We'll explore how to open modals from different parts of the app, even places where they wouldn't normally "belong." Plus, we'll check out how to open a modal from inside another modal.
First up, we walk through hooking up a shortcut (say, from your dashboard) that lets you quickly create a note via a modal. We see that even if the create note modal's base route is the notes index, using the modal doesn't redirect you to another page—pretty handy for keeping users in the flow.
Next, we show how you can add a link inside any modal that opens up another modal. For example, inside a regular modal, you can include a link to create a new note, and it just works! We take care of making sure everything's imported and set up in the component, and demonstrate that transitioning between modals is seamless.
All in all, this lesson is about flexibility: you can open modals from anywhere, layer them if needed, and the modal flow just works like you'd expect.