Menu
Effector LogoEffectorDocsAPIBlogTry
ChangelogTwitterGitHub
Effector LogoEffector
  • Docs
  • API
  • Blog
  • Try
  • Changelog
  • Twitter
  • GitHub
Effector LogoEffector
  • Introduction
    • Installation
    • Core Concepts
    • Glossary
    • Prior Art
  • API
    • effector
      • API Reference
      • Unit creators
        • createStore
        • createEvent
        • createEffect
        • createDomain
      • Unit definitions
        • Event
        • Store
        • Effect
        • Domain
      • combine
      • restore
      • createApi
      • sample
      • guard
      • attach
      • merge
      • split
      • forward
      • is
      • fromObservable
      • createStoreObject
      • clearNode
      • Babel plugin
    • effector-react
      • API Reference
      • Hooks
        • useStore
        • useStoreMap
        • useList
        • useGate
      • createComponent
      • Gate
      • createGate
      • createStoreConsumer
    • effector-vue
      • API Reference
      • VueEffector
      • ComponentOptions
      • Vue
  • Conventions
    • Naming
    • Best practices
  • Recipes
    • Recipes
    • Countdown timer
    • Design API layer
    • Usage with TypeScript
    • React Native Example
    • React
      • Example
      • Effects
      • Forms
      • Gate - a bridge between props and store
      • TODO creator
      • Dynamic form schema
    • React Native
      • React Native Example
  • Advanced guide
    • Computation priority
  • FAQ
    • FAQ

fromObservable

Creates an event containing all items from an Observable.

#Arguments

  1. observable (Observable)

#Returns

Event: New event

#Example

import {interval} from 'rxjs'
import {fromObservable} from 'effector'
//emit value in sequence every 1 second
const source = interval(1000)
const event = fromObservable(source)
//output: 0,1,2,3,4,5....
event.watch(console.log)
Previous

« is

Next

createStoreObject »

Docs

  • Docs
  • API
  • Changelog

Community

  • Twitter
  • Telegram 🇷🇺
  • Telegram

More

  • Github
Effector - the state manager
Copyright © 2020 zerobias