Dependent Blocks

Some blocks require other blocks to work properly. Make sure to add their dependencies before using them.

Important

If you don't follow the instructions below, you may run into issues with the blocks not working properly.

Diagram of Dependencies#

Some blocks require other blocks to work properly. Make sure to add their dependencies before using them.

Show DiagramClick to load the interactive dependencies diagram

Dependencies by Block Group#

Escrows by Signer (Table,Cards) & Escrows by Role (Table,Cards)#

These listing/detail blocks depend on several shared modules and providers:

  • wallet-kit

  • providers

  • handle-errors

  • helpers

  • tanstack

  • single-releaseormulti-releaseorsingle-multi-release// Depending on your needs

Providers to includeEnsure you include all the providers. These blocks need all of them

Single Release & Multi Release components#

All single-release and multi-release actions (Initialize Escrow, Fund Escrow, Change Milestone Status, Approve Milestone, Release, Dispute, Resolve, Update Escrow) require:

  • wallet-kit

  • providers

  • handle-errors

  • tanstack

  • helpers

Provider Wrapping (order matters)#

Wrap your app with the following providers, in this order. IncludeEscrowDialogsProviderand EscrowAmountProviderwhen a page uses dialogs or amount context.

app/layout.tsx

Last updated

Was this helpful?