Skip to content

constructor on Layers #5587

Answered by ilan-gold
ilan-gold asked this question in Q&A
Mar 17, 2021 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

Figured it out - I had to change

  constructor(args) {
    super(args);
  }

to

constructor(props) {
    // needed for TypeScript types that are generated from the JSDoc
    super(...arguments);
  }

Sorry, silly error!

Replies: 2 comments 2 replies

Comment options

ilan-gold
Mar 17, 2021
Collaborator Author

You must be logged in to vote
0 replies
Answer selected by ilan-gold
Comment options

You must be logged in to vote
2 replies
@ilan-gold
Comment options

ilan-gold Mar 17, 2021
Collaborator Author

@ibgreen
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants