RESOLVED - Understanding how hooks work

I’m not sure, but in your case context might in fact be undefined . That’s not a problem as long as you don’t try to use it. As I mentioned earlier, context isn’t always needed. And in some cases it won’t even be set - it will be undefined .

You can also look at the examples in wix-data.Hooks to see different use cases.

The best way to understand is to read the different docs, and then to play with them yourself in the editor. Then you’ll see what works and what doesn’t, and what all the different types of hooks do.

Good luck,

Yisrael