realar
Advanced tools
Comparing version 0.5.14 to 0.5.15
@@ -84,6 +84,7 @@ "use strict"; | ||
const [get, set] = reactive_box_1.box([init]); | ||
const has_to = arguments.length > 1; | ||
const fn = function (data) { | ||
if (!resolved) { | ||
resolved = 1; | ||
if (to) | ||
if (has_to) | ||
data = to; | ||
@@ -90,0 +91,0 @@ set([data]); |
{ | ||
"name": "realar", | ||
"version": "0.5.14", | ||
"version": "0.5.15", | ||
"description": "React state manager", | ||
@@ -88,3 +88,3 @@ "repository": { | ||
}, | ||
"gitHead": "42299966aa3b1dbc543e380de3de04cde8d737db" | ||
"gitHead": "c5e61a00b00f6e1bebfd9e0cea37d95f71be3d29" | ||
} |
@@ -156,2 +156,3 @@ import React, { Context, FC } from 'react'; | ||
const [get, set] = box([init]); | ||
const has_to = arguments.length > 1; | ||
@@ -161,3 +162,3 @@ const fn = function (data: any) { | ||
resolved = 1; | ||
if (to) data = to; | ||
if (has_to) data = to; | ||
set([data]); | ||
@@ -164,0 +165,0 @@ resolve(data); |
Sorry, the diff of this file is not supported yet
65615
1111