Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
shuding committed Oct 24, 2024
1 parent 39c9c0f commit ed4db74
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ export class FlightClientEntryPlugin {
}
}

for (const [name, actionEntryImports] of Object.entries(
for (const [entryName, actionEntryImports] of Object.entries(
actionMapsPerClientEntry
)) {
// If an action method is already created in the server layer, we don't
Expand All @@ -504,7 +504,7 @@ export class FlightClientEntryPlugin {
const remainingActionNames = []
for (const action of actions) {
// `action` is a [id, name] pair.
if (!createdActionIds.has(action[0])) {
if (!createdActionIds.has(entryName + '@' + action[0])) {
remainingActionNames.push(action)
}
}
Expand All @@ -520,8 +520,8 @@ export class FlightClientEntryPlugin {
compiler,
compilation,
actions: remainingActionEntryImports,
entryName: name,
bundlePath: name,
entryName,
bundlePath: entryName,
fromClient: true,
createdActionIds,
})
Expand Down Expand Up @@ -859,7 +859,7 @@ export class FlightClientEntryPlugin {
const actionsArray = Array.from(actions.entries())
for (const [, actionsFromModule] of actions) {
for (const [id] of actionsFromModule) {
createdActionIds.add(id)
createdActionIds.add(entryName + '@' + id)
}
}

Expand Down

0 comments on commit ed4db74

Please sign in to comment.