feat: Better handle multiple queries
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 25/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Da chiarire
- Stato di attività
- Ferma
- Stack tecnologico
- nextjs, react, typescript
- Ambito
- frontend
Direzione di ricerca
Start with the discussion in #2110 and inspect the existing useFaustQuery and FaustProvider paths described in the issue. Compare the proposed useSeedQuery and useQuery approaches, then define a solution that supports the same query with different variables, avoids duplicate caching, preserves existing behavior, and documents multiple-query usage.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
We should come up with a better solution to handle multiple queries in Faustjs. Discussion around useFaustQuery and multiple queries: #2110
Summary:
useFaustQueryadds an elegant way to access multiple queries on client side.
- But it don't support to get the same queries with different variables.
- It's also adding a duplicate cache, where we already have the same data in Apollo cache.
We can use Apollo's
useQueryto access server-fetched data with more control.
- To do this we need to have the correct query variables that server uses to fetch data, mostly based on seed query.
- Template passes seed query data inside props. But it's not a developer friendly way to access that data, also requires prop drilling for child components.
Next steps:
A better way to access the data on client side should be explored.
- One option is to have
useSeedQueryutility to access the seed node anywhere underFaustProvider.- Another way is to wrap useQuery with
useFaustQuerywithout restricting the capabilities ofuseQuery.We should avoid breaking changes.
We may consider a config option to disable useFaustQuery-related cache for those who want it.
We should well document the capabilities of Faust for the multiple queries.
- Lingua principale
- TypeScript
- Stelle
- 1.6k
- Fork
- 157
- Merge medio
- 1g 6h
- PR unite (30g)
- 101
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di wpengine/faustjs
-
docs: Better inform users about supported Nextjs versionsForse già presa @josephfusco l’ha presa 2 giorni fa. Aperta[Area] Compatibility [Type] Documentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
wpengine/faustjs#2308 · 1 commento · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
RFC: Deprecate `@faustwp/block-editor-utils`Forse già presa @theodesp l’ha presa 2 giorni fa. ApertaNeeds Discussion
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
wpengine/faustjs#2640 · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
[Area] Core [Type] Feature Needs Discussion
Difficoltà 5/5 Più di una settimana Idoneità per principianti 45/100
I maintainer di solito rispondono entro 1 giorno
-
[Area] WordPress Plugin [Type] Feature Needs Discussion php
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
I maintainer di solito rispondono entro 1 giorno
-
[Area] WordPress Plugin [Type] Feature Needs Discussion php Security
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di wpengine/faustjs
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
feat(icons): add [solidping]Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
homarr-labs/dashboard-icons#2939 ·
I maintainer di solito rispondono entro 1 giorno
-
Agent/category reasoning variants are still checked against the stale model cache in chat.paramsApertaopencode
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
code-yeongyu/oh-my-openagent#10003 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
I maintainer di solito rispondono entro 1 giorno
-
Actions on ToastsAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
nextcloud-libraries/nextcloud-dialogs#2669 ·
I maintainer di solito rispondono entro 1 giorno