-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Console] Fix hook for setting initial value in Monaco editor (#179865)
## Summary This is a follow-up to #178899 where we added a hook for setting the initial value in the Monaco editor in Console. However, the hook introduced a bug - it wasn't possible to type anything in the editor as every re-render called the function in the hook, which set the value in the editor to be the initial value. This PR fixes this.
- Loading branch information
1 parent
bb628f6
commit 7d080e9
Showing
2 changed files
with
12 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters