Erik C. Forés

Results 58 comments of Erik C. Forés

I was using vue's typescript config and failed (didn't try again tho). ```json // tsconfig.json { "compilerOptions": { "target": "es5", "strict": true, "module": "es2015", "moduleResolution": "node" } } ```

Is beforeUpdate also called before first render?

Awesome, will wait a bit. Happy you could step in on this!

> Is it possible that there isn't something already done that works regardless of the framework (Svelte, Vue, React)? `swrev` 😢 > Is it so hard to add? I don't...

> Back to topic: I don't think a lib should support an array as key(!). The HTTP-Spec is clear about the mapping between a URL and a resource. I think...

@frederikhors it does support miltiple arguments because of the limitation of react needing a lidt of dependencies. For example, vue or svelte dont need that.

In react, you need to specify a list of dependencies when you want to run an effect. That's why it needs a list of "dependencies". In vue, we have useEffect,...

> @ConsoleTVs You're mixings things up here: > > > > In React the exact opposite is true. Per default React tracks every prop in its virtual DOM and reruns...

It is, but just not as part of the default cache nor any implemented one. So you have to implement it yourself (it is really easy!) You just have to...