Skip to content
This repository has been archived by the owner on Mar 6, 2023. It is now read-only.

[ENQUETES] Rafraichissement des données après import #1839

Closed
Toub opened this issue May 26, 2020 · 1 comment
Closed

[ENQUETES] Rafraichissement des données après import #1839

Toub opened this issue May 26, 2020 · 1 comment
Assignees

Comments

@Toub
Copy link
Contributor

Toub commented May 26, 2020

Si les données sont déjà chargées sur la page, puis que l'on importe un fichier excel, au retour le formulaire n'est pas à jour car le cache apollo n'est pas à jour.

@Toub Toub self-assigned this May 26, 2020
@Toub
Copy link
Contributor Author

Toub commented May 26, 2020

J'ai essayé de bypasser le cache en utilisant fetchPolicy, sans succès:

  const { data, loading, error } = useQuery(ENQUETE_MANDATAIRE_INDIVIDUEL, {
    variables: { enqueteId, mandataireId },
    fetchPolicy: "no-cache",
  });

Lié à ce ticket: apollographql/react-apollo#3315

@remiroyc remiroyc self-assigned this May 27, 2020
@tglatt tglatt closed this as completed Jun 3, 2020
@tglatt tglatt added this to the Semaine du 26 mai et du 2 juin milestone Jun 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants