Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

L'identifiant d'une BAL n'est pas disponible pendant le premier cycle de vie des composants #337

Closed
tmerlier opened this issue May 6, 2021 · 0 comments · Fixed by #413
Closed
Assignees
Labels
bug Something isn't working

Comments

@tmerlier
Copy link
Contributor

tmerlier commented May 6, 2021

Problème

Lors du premier cycle de vie des composants l'object baseLocale créé dans BalDataContext est vide {}. Ce comportement provoque plusieurs erreurs et warning en console.

Error: `baseLocale._id` is marked as required in `Breadcrumbs`, but its value is `undefined`.
Error: Failed prop type: The prop `status` is marked as required in `Publication`, but its value is `undefined`.


BalDataContextProvider initialise baseLocale à {} hors cette variable devrait être null afin de proposer un comportement cohérent.

Résolution possible

Revoir le système de layouts de l'application afin de permettre un meilleur chargement des contextes et assurer l'existence de variable qu'ils fournissent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

Successfully merging a pull request may close this issue.

2 participants