Skip to content

Commit

Permalink
chore: delete useless code
Browse files Browse the repository at this point in the history
  • Loading branch information
danpeen committed Feb 24, 2025
1 parent 8a5cd3e commit 48ed2ae
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion apps/router-demo/router-host-2000/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ const Remote1App = createRemoteComponent({
loading: FallbackComp,
});

// export default CountContainer;
const Remote1AppWithLoadRemote = React.lazy(
() =>
new Promise((resolve) => {
Expand Down
1 change: 0 additions & 1 deletion apps/router-demo/router-remote1-2001/src/button.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
export default function Button(props: { text: string; onClick: () => void }) {
console.log('Button Render');
return <button onClick={props.onClick}>{props.text}</button>;
}
2 changes: 0 additions & 2 deletions packages/bridge/bridge-react/src/provider/create.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ export function createBridgeComponent<T>(bridgeInfo: ProviderFnParams<T>) {
bridgeInfo?.render(rootComponentWithErrorBoundary, dom),
).then((root: RootType) => rootMap.set(info.dom, root));
} else {
console.log('--------createBridgeComponent render Info', info);
let root = rootMap.get(info.dom);
if (!root) {
root = createRoot(info.dom);
Expand All @@ -101,7 +100,6 @@ export function createBridgeComponent<T>(bridgeInfo: ProviderFnParams<T>) {
destroy(info: DestroyParams) {
LoggerInstance.debug(`createBridgeComponent destroy Info`, info);
const root = rootMap.get(info.dom);
console.log('--------createBridgeComponent destroy Info', info);
if (root) {
if ('unmount' in root) {
root.unmount();
Expand Down

0 comments on commit 48ed2ae

Please sign in to comment.