dispatch() — ui Function Reference
Architecture documentation for the dispatch() function in use-toast.ts from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 4cadcb11_5cb9_1eed_a20f_6444ac24ea81["dispatch()"] 0ac37ef4_ee03_7234_1fa3_be05404864ce["use-toast.ts"] 4cadcb11_5cb9_1eed_a20f_6444ac24ea81 -->|defined in| 0ac37ef4_ee03_7234_1fa3_be05404864ce ac6cc7b8_7ed9_9e4c_685d_fdc48030a64f["addToRemoveQueue()"] ac6cc7b8_7ed9_9e4c_685d_fdc48030a64f -->|calls| 4cadcb11_5cb9_1eed_a20f_6444ac24ea81 30e47fbe_3f81_3b26_873e_26d9c29716e3["toast()"] 30e47fbe_3f81_3b26_873e_26d9c29716e3 -->|calls| 4cadcb11_5cb9_1eed_a20f_6444ac24ea81 2d897442_53b3_81ef_0f85_c25209dee57d["useToast()"] 2d897442_53b3_81ef_0f85_c25209dee57d -->|calls| 4cadcb11_5cb9_1eed_a20f_6444ac24ea81 c07b5fcc_69de_7a7c_19e6_3382a66187bb["reducer()"] 4cadcb11_5cb9_1eed_a20f_6444ac24ea81 -->|calls| c07b5fcc_69de_7a7c_19e6_3382a66187bb style 4cadcb11_5cb9_1eed_a20f_6444ac24ea81 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
deprecated/www/registry/default/hooks/use-toast.ts lines 136–141
function dispatch(action: Action) {
memoryState = reducer(memoryState, action)
listeners.forEach((listener) => {
listener(memoryState)
})
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does dispatch() do?
dispatch() is a function in the ui codebase, defined in deprecated/www/registry/default/hooks/use-toast.ts.
Where is dispatch() defined?
dispatch() is defined in deprecated/www/registry/default/hooks/use-toast.ts at line 136.
What does dispatch() call?
dispatch() calls 1 function(s): reducer.
What calls dispatch()?
dispatch() is called by 3 function(s): addToRemoveQueue, toast, useToast.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free