From c3293b59535f606e428c7c1d9b306a578829d571 Mon Sep 17 00:00:00 2001 From: Ben Drucker Date: Sun, 3 Jul 2016 15:24:31 -0700 Subject: [PATCH] Remove dead check for strict prev/current state equality * Barracks will always return a new object https://github.com/yoshuawuyts/barracks/blob/11d3c6d1822beadce0251279f9bc8370c569ea5e/index.js#L144 --- index.js | 1 - 1 file changed, 1 deletion(-) diff --git a/index.js b/index.js index d005b55..f739f04 100644 --- a/index.js +++ b/index.js @@ -82,7 +82,6 @@ function choo (opts) { // (obj, obj, obj, str, fn) -> null function render (data, state, prev, name, createSend) { if (opts.onState) opts.onState(data, state, prev, name, createSend) - if (state === prev) return const newTree = _router(state.location.pathname, state, prev) _rootNode = yo.update(_rootNode, newTree)