Skip to main content
dart_node
  • Docs
  • API
  • Blog
  • GitHub ↗
  • English
  • 中文

API Reference

  • dart_node_core
  • dart_node_express
  • dart_node_react
  • dart_node_react_native
  • dart_node_ws
  • dart_node_better_sqlite3
  • dart_node_mcp
  • dart_logging
  • reflux

Documentation

  • Getting Started
  • Why Dart?

act

void act(

  1. void callback()
)

Wraps code that causes React state updates in an act() block.

  • act documentation
  • act 允许你在断言之前等待所有挂起的更新完成

Implementation

void act(void Function() callback) {
  _reactAct(callback.toJS);
}

Documentation

  • Getting Started
  • API Reference
  • Examples

Community

  • GitHub
  • Discord
  • Twitter

More

  • Blog
  • Dart Official
  • Flutter

© 2026 dart_node. Built with Dart.

Made for React developers. Made for Flutter developers. Made for everyone.