Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
acdlite
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
31.
▲
by
acdlite
12y ago
Whipped together a basic one last night: https://github.com/acdlite/flummox-isomorphic-demo
32.
▲
by
acdlite
12y ago
Yep, that's what I was trying to say. The require cache makes the singleton pattern extra alluring, even in cases where you should avoid it.
33.
▲
by
acdlite
12y ago
Thanks! Yeah, I don't get it either. I think esamatti is exactly right: the original Facebook example used singletons and everyone followed their lead. That, combined with the fact that all CommonJS modules are singletons, anyway.
34.
▲
by
acdlite
12y ago
Yeah absolutely. I'm going to try to work this weekend on some demos. Still trying to figure out a good solution for over-fetching. It's a tough problem... which is why Relay looks so, co cool.
35.
▲
by
acdlite
12y ago
Another shameless plug: Flummox deals with this by eschewing singletons https://github.com/acdlite/flummox . Along with built in promise support, it works really well with react-router's lifecycle methods.
36.
▲
by
acdlite
12y ago
The way I've been doing UI animation in React so far is by checking for state changes in `componentDidUpdate` and animating with Velocity.js, which works surprisingly well. This appeals to me way more. Only concern is performance.
37.
▲
Json-sass: Transforms a JSON stream into scss syntax Sass
(github.com)
1 points
by
acdlite
12y ago
|
0 comments