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

Expose a "clearRTLTextPlugin" or a give a way to check if the rtl plugin is requested #7869

Closed
khawarizmus opened this issue Feb 3, 2019 · 1 comment · Fixed by #8864
Closed

Comments

@khawarizmus
Copy link

Motivation

Right now there is no way to check if the RTL plugin has been requested or not, as such if we try to set it while it was already requested the following error occurs: setRTLTextPlugin cannot be called multiple times.. which is an expected behavior.

however, if this error is not caught it may block the controls from rendering.
In my case, i encountered this error in a vuejs component where I always initialize the RTL plugin when the component is loaded even tho I make sure to destroy the map using map.remove() after each time leaving the component the error still persists whenever I navigate back to that route (which loads that component again)

Design Alternatives

expose this function in the index.js or create a getter to pluginRequested variable to check if the RTL plugin has been requested

@abdelhameedhamdy
Copy link

I encountered this issue in a vuejs component as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants