From a4f9d51610c9e2f284f0605540fa98f66e06e174 Mon Sep 17 00:00:00 2001 From: Igor Kamyshev Date: Wed, 21 Aug 2024 14:47:43 +0700 Subject: [PATCH] Add Rule of thumb to define what _Query_ is --- apps/website/docs/api/primitives/query.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/apps/website/docs/api/primitives/query.md b/apps/website/docs/api/primitives/query.md index 94031aed4..2cf57c53c 100644 --- a/apps/website/docs/api/primitives/query.md +++ b/apps/website/docs/api/primitives/query.md @@ -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.