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
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user