WaspW
Wasp3y ago
Jox

Actions and reactivity

Going through the Todo app tutorial and reading this,

We're calling the createTask Action directly this time (i.e., without wrapping it with a hook) because we don't need reactivity.

There seems to be some implied knowledge or context here?

What does reactivity mean in this context and how is it related to using a hook or not?

Is this a reference to some basic React concept or do I need to read through the react-query docs to understand why I wouldn't use a hook here or what "reactivity" means in this context?

I haven't been using React for a couple of years so my know-how isn't fully up to date.
Was this page helpful?