-
Notifications
You must be signed in to change notification settings - Fork 11
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
fix: code assistant option #1922
Conversation
@Raubzeug used factory instance creation instead of hook for register/unregister functionality @artemmufazalov - you may find it interesting to take a glance |
React.useEffect(() => { | ||
if (monacoGhostInstance && isCodeAssistEnabled) { | ||
monacoGhostInstance.register(monacoGhostConfig); | ||
prepareUserQueriesCache(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we prepare cache every time any useEffect dependency changes?
@@ -45,8 +46,11 @@ export function YqlEditor({ | |||
}: YqlEditorProps) { | |||
const input = useTypedSelector(selectUserInput); | |||
const dispatch = useTypedDispatch(); | |||
const [monacoGhostInstance, setMonacoGhostInstance] = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's not use state for editor instance? Will window.ydbEditor
be enough?
CI Results
Test Status: β PASSED
π Full Report
π No changes in tests. π
Bundle Size: β
Current: 80.32 MB | Main: 80.32 MB
Diff: +4.10 KB (0.00%)
β Bundle size unchanged.
βΉοΈ CI Information