Skip to content

Commit

Permalink
Add Rule of thumb to define what _Query_ is
Browse files Browse the repository at this point in the history
  • Loading branch information
igorkamyshev committed Aug 21, 2024
1 parent 996ce30 commit a4f9d51
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions apps/website/docs/api/primitives/query.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ outline: [2, 3]

Representation of a piece of remote data.

::: info Rule of thumb:

- some piece of data is stored in a remote location (like a server)
- its local representation can be be easily deleted and re-fetched from the remote location

So, it is a good candidate for a _Query_.

:::

## Commands

This section describes the [_Event_](https://effector.dev/en/api/effector/event/) that can be used to perform actions on the _Query_. Commands should be called in application code.
Expand Down

0 comments on commit a4f9d51

Please sign in to comment.