You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/build/getting-started/fcl-quickstart.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -285,7 +285,7 @@ However:
285
285
286
286
### Integrating Authentication and Building the Complete UI
287
287
288
-
Finally, integrate the query, mutation, and transaction status hooks with authentication using `useCurrentFlowUser`. Combine all parts to build the complete page.
288
+
Finally, integrate the query, mutation, and transaction status hooks with authentication using `useFlowCurrentUser`. Combine all parts to build the complete page.
-**Step 2** sends a transaction to increment the counter and stores the transaction ID.
411
411
-**Step 3** subscribes to transaction status updates using the stored transaction ID and uses a `useEffect` hook to automatically refetch the updated count when the transaction is sealed (status code 4).
412
-
-**Step 4** integrates authentication via `useCurrentFlowUser` and combines all the pieces into a single user interface.
412
+
-**Step 4** integrates authentication via `useFlowCurrentUser` and combines all the pieces into a single user interface.
413
413
414
414
:::tip
415
415
@@ -451,7 +451,7 @@ Then visit [http://localhost:3000](http://localhost:3000) in your browser. You s
451
451
By following these steps, you've built a simple Next.js dApp that interacts with a Flow smart contract using [**@onflow/kit**]. In this guide you learned how to:
452
452
453
453
- Wrap your application in a `FlowProvider` to configure blockchain connectivity.
454
-
- Use kit hooks such as `useFlowQuery`, `useFlowMutate`, `useFlowTransactionStatus`, and `useCurrentFlowUser` to manage authentication, query on-chain data, submit transactions, and monitor their status.
454
+
- Use kit hooks such as `useFlowQuery`, `useFlowMutate`, `useFlowTransactionStatus`, and `useFlowCurrentUser` to manage authentication, query on-chain data, submit transactions, and monitor their status.
455
455
- Integrate with the local Flow emulator and Dev Wallet for a fully functional development setup.
456
456
457
457
For additional details and advanced usage, refer to the [@onflow/kit documentation] and other Flow developer resources.
0 commit comments