Dave Tang

Results 7 comments of Dave Tang

This is an interesting idea, but to me it's not clear why `useSkeleton` needs to be a hook, or why it's much better than alternate patterns. For example, the hook...

I want to clarify my position: I'm not against this pattern, but I think it's just one possible pattern amongst many. I think the most suitable abstraction is dependent on...

> * Does it need to be a hook? No it doesn't. However, the developer experience is familiar. As an aside, I strongly believe that hooks should be used as...

The usage looks correct. Are you able to provide a bit more info? What browser? Is it a `` or `` stylesheet? Would be great if you could show me...

Actually I think I may have found the cause. Certain @rules in the CSS create rules without selectorText, so I added an additional check to make sure it first exists....

Thanks for the detailed information. There could be two problems here: First, it could be that the external stylesheet has not finished loading by the time your code executes. This...

It looks like you cannot read CSS stylesheets loaded locally. I find it odd that this restriction applies to files served from a web server running locally as well -...