Skip to content

Commit

Permalink
Revert "fix: onBundleStart dependency array (#6116)"
Browse files Browse the repository at this point in the history
This reverts commit ff0b5b2.
  • Loading branch information
CarmenPopoviciu committed Jun 24, 2024
1 parent 0ee07ab commit 1e68eba
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions packages/wrangler/src/dev/dev.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -603,12 +603,11 @@ function DevSession(props: DevSessionProps) {
]);

const onBundleStart = useCallback(() => {
if (!props.experimentalDevEnv) {
devEnv.proxy.onBundleStart({
type: "bundleStart",
config: startDevWorkerOptions,
});
}
// NOTE: this callback won't be called if props.experimentalDevEnv
devEnv.proxy.onBundleStart({
type: "bundleStart",
config: startDevWorkerOptions,
});
}, [devEnv, startDevWorkerOptions, props.experimentalDevEnv]);
const onBundleComplete = useCallback(
(bundle: EsbuildBundle) => {
Expand Down

0 comments on commit 1e68eba

Please sign in to comment.