reactive-di
Advanced tools
Comparing version 7.0.2 to 7.0.3
{ | ||
"name": "reactive-di", | ||
"version": "7.0.2", | ||
"version": "7.0.3", | ||
"description": "Reactive dependency injection", | ||
@@ -68,3 +68,3 @@ "publishConfig": { | ||
"flow-bin": "^0.66.0", | ||
"lom_atom": "^4.0.1", | ||
"lom_atom": "^4.0.3", | ||
"mobx": "^3.5.1", | ||
@@ -83,4 +83,4 @@ "mocha": "^5.0.1", | ||
"dependencies": { | ||
"urc": "^1.0.6" | ||
"urc": "^1.0.8" | ||
} | ||
} |
@@ -21,3 +21,3 @@ # Reactive DI [![Build Status](https://secure.travis-ci.org/zerkalica/reactive-di.png)](http://travis-ci.org/zerkalica/reactive-di) | ||
* [todomvc benchmark](http://mol.js.org/app/bench/#bench=https%3A%2F%2Fzerkalica.github.io%2Futb%2Fbenchmark%2F/sample=preact-lom_atom~preact-mobx~preact-raw~preact-reactive-di) | ||
* [fiddle](https://jsfiddle.net/zerkalica/jxo6hqf8/9/) example with loading and error handling demo. | ||
* [fiddle](https://jsfiddle.net/zerkalica/jxo6hqf8/) example with loading and error handling demo. | ||
@@ -93,3 +93,3 @@ ## TOC | ||
// @flow | ||
import {ReactAtom, mem, AtomWait, action} from 'lom_atom' | ||
import {ReactAtom, mem, action} from 'lom_atom' | ||
import {createReactWrapper, createCreateElement} from 'reactive-di' | ||
@@ -100,3 +100,3 @@ import {render, h, Component} from 'preact' | ||
return <div> | ||
{error instanceof AtomWait | ||
{!(error instanceof Error) | ||
? <div> | ||
@@ -170,3 +170,3 @@ Loading... | ||
return <div> | ||
{error instanceof AtomWait | ||
{!(error instanceof Error) | ||
? <div> | ||
@@ -299,3 +299,3 @@ Loading... | ||
return <div> | ||
{error instanceof AtomWait | ||
{!(error instanceof Error) | ||
? <div> | ||
@@ -373,8 +373,8 @@ Loading... | ||
In ReactiveDI pending/complete status realized via exceptions. Special user defined "Wait" exception can be handled in ErrorableView. | ||
In ReactiveDI pending/complete status realized via Promise exception. | ||
```js | ||
function ErrorableView({error}: {error: Error}) { | ||
function ErrorableView({error}: {error: Error | Promise<*>}) { | ||
return <div> | ||
{error instanceof AtomWait | ||
{!(error instanceof Error) | ||
? <div> | ||
@@ -389,3 +389,3 @@ Loading... | ||
In component model ``` throw new AtomWait() ``` catched in HelloComponent wrapper and default ErrorableView shows ``` Loading... ``` instead of HelloView. | ||
In component model ``` throw new Promise() ``` catched in HelloComponent wrapper and default ErrorableView shows ``` Loading... ``` instead of HelloView. | ||
@@ -392,0 +392,0 @@ ```js |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
182060
Updatedurc@^1.0.8