Skip to content

Commit f261f1f

Browse files
author
Gerard Moreno-Torres Bertran
committed
remove from updates
1 parent fa1a08a commit f261f1f

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/ReactJSON.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Reconciler from "react-reconciler";
22

3-
const createHostConfig = callback => ({
3+
const createHostConfig = () => ({
44
now: Date.now,
55
getRootHostContext: () => {
66
let rootContext = {};
@@ -56,11 +56,8 @@ const createHostConfig = callback => ({
5656
prepareUpdate: () => {},
5757
commitTextUpdate: (textInstance, oldText, newText) => {
5858
textInstance.value = newText;
59-
callback();
60-
},
61-
commitUpdate: () => {
62-
callback();
6359
},
60+
commitUpdate: () => {},
6461
appendChild: (parentInstance, child) => {
6562
parentInstance.children.push(child);
6663
},
@@ -90,7 +87,7 @@ const createHostConfig = callback => ({
9087
const ReactJSON = {
9188
mount(element, renderDom, callback) {
9289
const isAsync = false;
93-
const reconcilerInstance = Reconciler(createHostConfig(callback));
90+
const reconcilerInstance = Reconciler(createHostConfig());
9491
const container = reconcilerInstance.createContainer(renderDom, isAsync);
9592

9693
const parentComponent = null;

0 commit comments

Comments
 (0)