@cfcs/react
Advanced tools
Comparing version 0.0.8 to 0.0.9
@@ -7,3 +7,3 @@ /* | ||
repository: https://github.com/naver/egjs-conveyer | ||
version: 0.0.8 | ||
version: 0.0.9 | ||
*/ | ||
@@ -23,5 +23,7 @@ 'use strict'; | ||
for (var name in reactiveState) { | ||
var _loop_1 = function (name) { | ||
// eslint-disable-next-line react-hooks/rules-of-hooks | ||
var state = react.useState(reactiveState[name]); | ||
var state = react.useState(function () { | ||
return reactiveState[name]; | ||
}); | ||
states[name] = { | ||
@@ -32,2 +34,6 @@ getter: false, | ||
}; | ||
}; | ||
for (var name in reactiveState) { | ||
_loop_1(name); | ||
} | ||
@@ -76,2 +82,3 @@ | ||
core.keys(methods).forEach(function (name) { | ||
console.log(name); | ||
result[name] = methods[name]; | ||
@@ -78,0 +85,0 @@ }); |
@@ -7,3 +7,3 @@ /* | ||
repository: https://github.com/naver/egjs-conveyer | ||
version: 0.0.8 | ||
version: 0.0.9 | ||
*/ | ||
@@ -21,5 +21,7 @@ import { adaptReactive, keys, camelize } from '@cfcs/core'; | ||
for (var name in reactiveState) { | ||
var _loop_1 = function (name) { | ||
// eslint-disable-next-line react-hooks/rules-of-hooks | ||
var state = useState(reactiveState[name]); | ||
var state = useState(function () { | ||
return reactiveState[name]; | ||
}); | ||
states[name] = { | ||
@@ -30,2 +32,6 @@ getter: false, | ||
}; | ||
}; | ||
for (var name in reactiveState) { | ||
_loop_1(name); | ||
} | ||
@@ -74,2 +80,3 @@ | ||
keys(methods).forEach(function (name) { | ||
console.log(name); | ||
result[name] = methods[name]; | ||
@@ -76,0 +83,0 @@ }); |
{ | ||
"name": "@cfcs/react", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"description": "Cross Framework Components", | ||
@@ -35,3 +35,3 @@ "main": "dist/cfcs.cjs.js", | ||
"dependencies": { | ||
"@cfcs/core": "~0.0.8" | ||
"@cfcs/core": "~0.0.9" | ||
}, | ||
@@ -38,0 +38,0 @@ "devDependencies": { |
@@ -23,3 +23,3 @@ import { ReactiveSubscribe, ReactiveAdapter, keys, camelize, adaptReactive } from "@cfcs/core"; | ||
// eslint-disable-next-line react-hooks/rules-of-hooks | ||
const state = useState(reactiveState[name]); | ||
const state = useState(() => reactiveState[name]); | ||
states[name] = { | ||
@@ -83,2 +83,3 @@ getter: false, | ||
keys(methods).forEach(name => { | ||
console.log(name); | ||
result[name] = methods[name]; | ||
@@ -85,0 +86,0 @@ }); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
22620
322
Updated@cfcs/core@~0.0.9