-
Notifications
You must be signed in to change notification settings - Fork 99
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
Instructure UI components inside of Canvas #1439
Comments
Hi! Could you provide more information on what you are trying to achieve and with what code? |
@HerrTopi Hey there! Basically, we have custom JS that hooks into canvas to provide custom functionality. The goal is to use some of the components from this library in our custom code. I'm just wrapping our App component with the provider as mentioned in the documentation and then I have a button component from this library. While this does render correctly our console is full of max call stack errors. I'm curious if anyone has used any of these components within canvas itself (custom module) |
@HerrTopi Happy Wednesday! I looked into the issue more with @AustinKP and it looks like the issue with the package Our react code is injected into canvas and cavas-lms uses jQuery who calls on the Window object I'm not sure 100% what the correct solution would be as I don't know the history of why some of the utils in I had tried locally modifying the code in the repo and just removing |
hi! I'm pretty sure that InstUI will break if you remove its I have 2 guesses:
|
@AustinKP @OrchidForever do you have any updates on this? were you able to solve this and if not, is this still relevant? thanks |
closing this for now. feel free to reopen if still relevant |
Question
Is it possible to use instructure's UI react components within instructure's canvas itself? I'm trying to build a custom module that hooks into canvas but uses some of the existing canvas components from this library in my custom module if possible but I receive this error:
Note: I actually am able to see the components render but I'm receiving a ton of that error above
The text was updated successfully, but these errors were encountered: