Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Incorporate _id change
Browse files Browse the repository at this point in the history
JoviDeCroock authored Jan 7, 2025
1 parent 7515067 commit a119462
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
@@ -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.__;

0 comments on commit a119462

Please sign in to comment.