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
{{ message }}
This repository was archived by the owner on Feb 7, 2024. It is now read-only.
In order to subscribe to the <Loop> component's loop, I need to import prop-types as a module dependency, and add the following field into any class extending React.Component:
staticcontextTypes={loop: PropTypes.object,};
However, upon doing this, all other static fields on my TypeScript class (eg. functions and variables) begin to return undefined whenever referenced.
Is it possible to subscribe to the <Loop> component's loop without using prop-types at all, and without warnings being thrown in the console? Or at least is there a way to use the prop-types package without breaking other static functions in TypeScript classes?