We konden deze vermelding niet vinden. Er worden benaderende resultaten weergegeven. Controleer je spelling of stel voor deze term aan het woordenboek toe te voegen.
componentDidMount
Perform any necessary cleanup in this method, such as invalidating timers, canceling network requests, or cleaning up any subscriptions that were created in componentDidMount().
Mettez-y tout nettoyage nécessaire, tel que l'invalidation de minuteurs, l'annulation de requêtes réseau, ou la résiliation d'abonnements effectués dans componentDidMount()
componentDidMount() is invoked immediately after a component is mounted (inserted into the tree).
componentDidMount() est appelée immédiatement après que le composant est monté (inséré dans l'arbre).
The component below demonstrates how to make an AJAX call in componentDidMount to populate local component state.
Le composant ci-dessous montre comment faire un appel AJAX dans componentDidMount pour peupler l'état local d'un composant.
Inside componentDidMount, we will get a reference to it so we can pass it to the jQuery plugin.
Dans componentDidMount, nous obtiendrons une référence qui pourra être passée au plugin jQuery.
While passing [] as the second argument is closer to the familiar componentDidMount and componentWillUnmount mental model, there are usually better solutions to avoid re-running effects too often.
Même si passer [] comme second argument vous rapproche du modèle mental habituel de componentDidMount et componentWillUnmount, il y a en général de meilleures solutions pour éviter de ré-exécuter les effets trop souvent.
You may call setState() immediately in componentDidMount().
Vous avez le droit d'appeler setState() directement dans componentDidMount().
For example, we use componentDidMount() instead of didMount() or onMount().
Par exemple, nous utilisons componentDidMount() plutôt que didMount() ou onMount().
React also calls lifecycles like componentDidMount and componentDidUpdate during this phase.
C'est également durant cette phase que React appelle des méthodes de cycle de vie comme componentDidMount et componentDidUpdate.
Unlike componentDidMount and componentDidUpdate, the function passed to useEffect fires after layout and paint, during a deferred event.
Contrairement à componentDidMount et componentDidUpdate, la fonction fournie à useEffect est exécutée de façon différée, après la mise en page et l'affichage.
Tip Unlike componentDidMount or componentDidUpdate, effects scheduled with useEffect don't block the browser from updating the screen.
À l'inverse de componentDidMount ou de componentDidUpdate, les effets planifiés avec useEffect ne bloquent en rien la mise à jour de l'affichage par le navigateur, ce qui rend votre application plus réactive.
The subscription logic is also spread between componentDidMount and componentWillUnmount.
Quant à la gestion de l'abonnement, elle est éparpillée entre componentDidMount et componentWillUnmount.
Component instances receive componentWillMount() and then componentDidMount().
Les instances de composants reçoivent componentWillMount() puis componentDidMount().
Tip If you're migrating code from a class component, note useLayoutEffect fires in the same phase as componentDidMount and componentDidUpdate.
Si vous migrez du code depuis un composant écrit à l'aide d'une classe, sachez que useLayoutEffect s'exécute dans la même phase que componentDidMount et componentDidUpdate.
Potentieel gevoelige of ongepaste informatie
Er worden alleen voorbeelden gegeven om u te helpen het woord of de woordcombinatie waarop u hebt gezocht, te vertalen. Deze worden niet door ons geselecteerd of gevalideerd en kunnen ongepaste taal bevatten. Wij vragen u melding te maken van voorbeelden die dienen te worden aangepast of verwijderd. Vertalingen met grof of informeel taalgebruik worden meestal rood of oranje gemarkeerd.