AdobeXD/plugin-docs

Removed unneeded functions from react-shim.js

ashryanbeats opened this issue · 0 comments

Submit an issue

Topic

This is an issue regarding:

https://github.com/AdobeXD/plugin-docs/blob/master/tutorials/quick-start-react/index.md

Versions

  • Supported XD version(s): 16+

Description of the issue

Our React Quick Start contains code for a react-shim.js file. Some or all of the functions included there will (or have) become unnecessary as the plugin API evolves.

As of XD 16, we no longer need to shim setTimeout and clearTimeout.

Proposed solution

Let's leave it as-is now, so developers have this option for backwards compatibility.

In a few months, when we no longer need to support older versions of XD with the missing APIs, let's remove unneeded functions, or if possible at some point (much longer term), the entire shim itself.