Skip to content

DimitarNestorov/mobx-run-in-reactive-context

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mobx-run-in-reactive-context

npm version

Use this whenever you get this warning: Computed value is being read outside a reactive context. Doing a full recompute.

import runInReactiveContext from 'mobx-run-in-reactive-context'

// ...

runInReactiveContext(() => {
	// Read your computed value here
	console.log(object.computedValue)
})

About

Solution for the "value is being read outside a reactive context" warning

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published