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

#createStoreObject(objectShape)

An alias for combine({field: storeA, another: storeB}). See combine

#Arguments

  1. objectShape (Object)

#Returns

Store: New store

#Example

import {createStore, createStoreObject} from 'effector'
const balance = createStore(0)
const username = createStore('zerobias')
const root = createStoreObject({balance, username})
root.watch(data => console.log(data)) // {balance: 0, username: 'zerobias'}
Previous

« fromObservable

Next

clearNode »

Docs

  • Docs
  • API
  • Changelog

Community

  • Twitter
  • Telegram 🇷🇺
  • Telegram

More

  • Github
Effector - the state manager
Copyright © 2020 zerobias