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 has been 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?
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
In order to subscribe to the
<Loop>
component'sloop
, I need to importprop-types
as a module dependency, and add the following field into any class extendingReact.Component
: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'sloop
without usingprop-types
at all, and without warnings being thrown in the console? Or at least is there a way to use theprop-types
package without breaking other static functions in TypeScript classes?The text was updated successfully, but these errors were encountered: