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
I would like to know the best way to change from LTR -> RTL and vice versa using state in a React component.
I know that using the createCache() function with the CacheProvider can cause unwanted performance issues in an application if handled incorrectly. It seems by using an approach like the one shown below can cause issues since it is constantly switching from
one cache value to another. Is there a better way to implement this way of switching cache values using state in react?
Using the example code below, I would like to know the best way to implement such functionality in an app.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
My question is this:
I would like to know the best way to change from LTR -> RTL and vice versa using state in a React component.
I know that using the createCache() function with the CacheProvider can cause unwanted performance issues in an application if handled incorrectly. It seems by using an approach like the one shown below can cause issues since it is constantly switching from
one cache value to another. Is there a better way to implement this way of switching cache values using state in react?
Using the example code below, I would like to know the best way to implement such functionality in an app.
Beta Was this translation helpful? Give feedback.
All reactions