Skip to content
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

[R] fix (smart,x-ui-react-bundle): handle error use smart before kernel init #279

Merged

Conversation

y-moufakkr
Copy link
Collaborator

closes #191
if this solution is ok, I need to do it on next-ui too

@@ -121,6 +121,13 @@ export const useSmart = <T extends Smart>(
},
options?: UseSmartOptions
): T => {
if (!window.sessionStorage.getItem("isKernelInitialized")) {
setTimeout(() => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I remember we discussed about this change, jsut to check via container. Not sure where we pushed it?

@y-moufakkr y-moufakkr force-pushed the fix/smart/191-handle-error-useSmart-before-init-kernel branch from 65fe220 to e4bd969 Compare May 20, 2022 03:17
@y-moufakkr y-moufakkr changed the title [wip] fix (smart,x-ui-react-bundle): handle error use smart before kernel init [R] fix (smart,x-ui-react-bundle): handle error use smart before kernel init May 20, 2022
@theodorDiaconu theodorDiaconu merged commit 617c8fc into main Jun 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

useSmart- Model is null if kernel is not initialized
2 participants