mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-20 09:20:16 +00:00
Refactor explorer config into useKnockoutExplorer hook (#397)
Co-authored-by: Steve Faulkner <stfaul@microsoft.com>
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import { BindingHandlersRegisterer } from "./Bindings/BindingHandlersRegisterer";
|
||||
import { sendMessage } from "./Common/MessageHandler";
|
||||
import * as ko from "knockout";
|
||||
import Explorer from "./Explorer/Explorer";
|
||||
|
||||
@@ -10,7 +9,6 @@ export const applyExplorerBindings = (explorer: Explorer) => {
|
||||
ko.applyBindings(explorer);
|
||||
// This message should ideally be sent immediately after explorer has been initialized for optimal data explorer load times.
|
||||
// TODO: Send another message to describe that the bindings have been applied, and handle message transfers accordingly in the portal
|
||||
sendMessage("ready");
|
||||
$("#divExplorer").show();
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user