Menu
xoid
DocsExamples
🌜
🌞
xoid
  • Docs
  • Examples
  • Introduction
    • Getting Started
    • Quick Tutorial
  • API
    • create
    • subscribe
    • effect
    • use
  • React API
    • useAtom
    • useSetup
  • Recipes
    • Using context correctly
    • Working with nested state
    • Dynamic functions with fixed references
    • Using reducers
    • Using in an existing Redux App
    • Redux Devtools integration
    • Refactoring React classes
    • Grabbing refs
    • Finite state machines
    • 'Use'ful patterns
    • Persisting data with localStorage

effect

import { effect } from 'xoid'

effect is completely identical to subscribe, except it runs immediately instead of waiting for the first update after subscription

Edit this page
Last updated on 10/11/2021
Previous
« subscribe
Next
use »

Docs

  • Getting Started
  • API
  • Recipes

More

  • Examples
  • Github
Copyright © 2022 Docusaurus. Thanks to Anatoly for the icon.