Skip to content

Commit

Permalink
refactor(createFiberFromElement): define source before owner, just fo…
Browse files Browse the repository at this point in the history
…r consistency
  • Loading branch information
idango10 committed Aug 29, 2023
1 parent ffcd9db commit ef1d7e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-reconciler/src/ReactFiber.js
Original file line number Diff line number Diff line change
Expand Up @@ -656,8 +656,8 @@ export function createFiberFromElement(
mode: TypeOfMode,
lanes: Lanes,
): Fiber {
let owner = null;
let source = null;
let owner = null;
if (__DEV__) {
source = element._source;
owner = element._owner;
Expand Down

0 comments on commit ef1d7e7

Please sign in to comment.