From 8c6bbed0cd571610812aa2118b2accb27867564b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A1ssio=20Zen?= Date: Fri, 13 Jan 2017 19:46:49 -0200 Subject: [PATCH] Make sure to try to persist on next tick --- src/containers/EntryPage.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/containers/EntryPage.js b/src/containers/EntryPage.js index 22fe5b78..d25ed026 100644 --- a/src/containers/EntryPage.js +++ b/src/containers/EntryPage.js @@ -75,7 +75,9 @@ class EntryPage extends React.Component { handlePersistEntry = () => { const { persistEntry, collection } = this.props; - persistEntry(collection); + setTimeout(() => { + persistEntry(collection); + }, 0); }; render() {