3 ms·
Maybe "encapsulated" is not the right term when I simply meant "scoped". I tried scoping the entities using Context in some prior art which we use in productio
by aenero 6y ago
Maybe "encapsulated" is not the right term when I simply meant "scoped".
I tried scoping the entities using Context in some prior art which we use in production. Some colleagues kindly gave me some benchmark results and the version without Context (external/module-scope) was faster.
I'm not trying to debate against Context here. In fact, there's nothing that would stop anyone from using SimpleR State's entities with Context API.
- jeswin 6y agoNot that I'm a fan of Context (or even React); but without publishing the benchmark code or specific technical arguments, it's hard to support a claim about slowness or of speed.
- aenero 6y agoYup agreed. That's why I stated it as "I found it to be...", coz I'm not trying to convince everyone else LOL. It's never my intention for this library to try and be the "best" out there. I simply want to create what I sought for, which is the closest to the simplest approach I can think of. And to share it to the public, in case someone out there is looking for the same thing I am, and maybe it could help that someone. That's what open source is for, after all.