Skip to content

Commit

Permalink
Incorporate _id change
Browse files Browse the repository at this point in the history
  • Loading branch information
JoviDeCroock committed Jan 7, 2025
1 parent 0968fee commit fb42c41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/adapter/10/bindings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export function getHookState(
// useContext
if (type === HookType.useContext) {
const context = list[index]._context || list[index].__c || list[index].c;
const provider = c.context[context._id] || c.context[context.__c];
const provider = c.context[context._id] || c.context[context.__c] || c.context[context.__l];
return provider
? provider.props.value
: context._defaultValue || context.__;
Expand Down

0 comments on commit fb42c41

Please sign in to comment.