Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
4afcbd0
First implementation still preview
mfbz Sep 18, 2025
f1e376b
Minor fixes
mfbz Sep 18, 2025
808282f
Added improved implementation of useFlowSchedule hook
mfbz Sep 23, 2025
0374705
Cleaned up hook
mfbz Oct 1, 2025
77295d3
Added tests
mfbz Oct 1, 2025
d62421d
Added changeset
mfbz Oct 1, 2025
f431cab
Merge branch 'master' into mfbz/use-flow-schedule-hook
mfbz Oct 1, 2025
cbc1d78
Improved changeset description
mfbz Oct 2, 2025
6950c0b
Changed transactionId to txId for consistency
mfbz Oct 2, 2025
f0517cb
Merge branch 'master' into mfbz/use-flow-schedule-hook
mfbz Oct 2, 2025
70440a3
Added useFlowSchedule card to demo and improved naming
mfbz Oct 2, 2025
c6bbe8a
Renamed txId to scheduledTxId for better clarity
mfbz Oct 2, 2025
3862072
Converted txid from bigint to string for consistency
mfbz Oct 3, 2025
c2023b3
Merge branch 'master' into mfbz/use-flow-schedule-hook
mfbz Oct 3, 2025
c20706e
Merge branch 'master' into mfbz/use-flow-schedule-hook
mfbz Oct 14, 2025
b296b19
Minor ordering update
mfbz Oct 14, 2025
0fedcd8
Updated card id
mfbz Oct 14, 2025
27b072e
Refactored single hook into multiple ones
mfbz Oct 14, 2025
dfedfc2
Improved hooks and added card implementation in demo
mfbz Oct 15, 2025
96bf4ba
Made setup transaction idempodent
mfbz Oct 15, 2025
db9c4bc
Merge branch 'master' into mfbz/use-flow-schedule-hook
mfbz Oct 15, 2025
567e80a
Update packages/demo/src/components/content-sidebar.tsx
mfbz Oct 15, 2025
8a761cf
Update packages/demo/src/components/content-sidebar.tsx
mfbz Oct 15, 2025
66f39dd
Improved scheduled transactions demo card
mfbz Oct 15, 2025
7fee026
Merge branch 'master' into mfbz/use-flow-schedule-hook
mfbz Oct 16, 2025
ee91c3f
Merge branch 'master' into mfbz/use-flow-schedule-hook
mfbz Oct 17, 2025
b22ea28
Merge branch 'master' into mfbz/use-flow-schedule-hook
mfbz Oct 18, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/upset-cities-start.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@onflow/react-sdk": minor
---

Added `useFlowSchedule` hook for managing scheduled transactions. This hook provides methods to list, get, setup, and cancel scheduled transactions with support for handler data resolution and transaction status tracking.
2 changes: 2 additions & 0 deletions packages/demo/src/components/content-section.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {UseFlowMutateCard} from "./hook-cards/use-flow-mutate-card"
import {UseFlowEventsCard} from "./hook-cards/use-flow-events-card"
import {UseFlowTransactionStatusCard} from "./hook-cards/use-flow-transaction-status-card"
import {UseFlowRevertibleRandomCard} from "./hook-cards/use-flow-revertible-random-card"
import {UseFlowScheduledTransactionCard} from "./hook-cards/use-flow-scheduled-transaction-card"
import {UseFlowNftMetadataCard} from "./hook-cards/use-flow-nft-metadata-card"

// Import setup cards
Expand Down Expand Up @@ -87,6 +88,7 @@ export function ContentSection() {
<UseFlowRevertibleRandomCard />
<UseFlowTransactionStatusCard />
<UseFlowNftMetadataCard />
<UseFlowScheduledTransactionCard />
</div>

<div className="mb-12 md:mb-24">
Expand Down
6 changes: 6 additions & 0 deletions packages/demo/src/components/content-sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,12 @@ const sidebarItems: SidebarItem[] = [
category: "hooks",
description: "Fetch NFT metadata and traits",
},
{
id: "useflowscheduledtransaction",
label: "Scheduled Transactions",
category: "hooks",
description: "Manage Scheduled Transactions",
},

// Advanced section
{
Expand Down
Loading