Create a "Macguffins" Collection
Create a new Custom Flow
Add your Flow to the Macguffins Collection
Embed the Macguffins Collection in your app
type: macguffin
that’s unknown to Frigade — we don’t have a built-in Component in the SDK that matches that Flow type, so there’s nothing to render yet.
Let’s fix that by wiring up a new <Macguffin>
Component and registering it with the Frigade <Provider>
so that we know how to render Flows with type: macguffin
.
Create a Macguffin Component
Macguffin.tsx
Pass your Component into the Provider
flowTypes
prop to <Frigade.Provider>
to map your new <Macguffin>
Component to the macguffin
Flow type<Macguffin>
rendering the contents of your Flow. Now that you have it set up, you can deploy any Flow with type: macguffin
to any Collection.