You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// @flowimportReact,{useState,useCallback}from'react';importfbt,{IntlViewerContext}from'fbt';constLinks=()=>{return<fbtdesc="test">Text link</fbt>;};constApp=()=>{constsetState=useState({})[1];constonClick=useCallback(()=>{IntlViewerContext.locale=Math.random()>0.5 ? 'en_GB' : 'de_DE';setState({});},[setState]);return(<divonClick={onClick}><fbtdesc="test">Title</fbt><Links/>{/* rerender a `<Links/>` component never would call and text does not change when set new locale */}</div>);};
The text was updated successfully, but these errors were encountered:
How to solve the next problem:
The text was updated successfully, but these errors were encountered: