Closed neverfox closed 8 years ago
In your example, you compute a single transient, then make a constant function that returns it. It's trying to use the same transient for every reducer at once.
Oh course! So obvious now. Thank you!
(partial transient [])
In the README, it suggests that you could use the post-reducer to turn transient data structures into persistent data structures, so I tried this with a toy example. It works great if there's just one chuck, but if there's more than one, you get the dreaded
Transient used after persistent! call
error.Based on my understanding from your diagrams, the second chunk should be starting with a new reducer-identity value, i.e. a new transient data-structure, so where am I going wrong?