-
Notifications
You must be signed in to change notification settings - Fork 24.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Back out "Pass mutation list to RCTMountingTransactionObserving callb…
…acks" Summary: https://fb.workplace.com/groups/fbapp.commerce.engsupport/permalink/2074812256012212/ Back out "[react-native][PR] Pass mutation list to RCTMountingTransactionObserving callbacks" Original commit changeset: f40afc512f2c Original Phabricator Diff: D35214478 (91fc2c0) Changelog: [Internal] Reviewed By: cipolleschi Differential Revision: D35825832 fbshipit-source-id: b53b616dca39c84b3a8e8e4cbaa4a45834e53fe3
- Loading branch information
1 parent
476330a
commit 2f5a1e6
Showing
11 changed files
with
84 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
ReactCommon/react/renderer/mounting/MountingTransactionMetadata.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/* | ||
* Copyright (c) Meta Platforms, Inc. and affiliates. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
#include "MountingTransactionMetadata.h" | ||
|
||
namespace facebook { | ||
namespace react {} // namespace react | ||
} // namespace facebook |
32 changes: 32 additions & 0 deletions
32
ReactCommon/react/renderer/mounting/MountingTransactionMetadata.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* | ||
* Copyright (c) Meta Platforms, Inc. and affiliates. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include <react/renderer/mounting/MountingTransaction.h> | ||
#include <react/renderer/telemetry/TransactionTelemetry.h> | ||
|
||
namespace facebook { | ||
namespace react { | ||
|
||
/* | ||
* Contains all (meta)information related to a MountingTransaction except a list | ||
* of mutation instructions. | ||
* The class is meant to be used when a consumer should not have access to all | ||
* information about the transaction (incapsulation) but still needs to observe | ||
* it to produce some side-effects. | ||
*/ | ||
class MountingTransactionMetadata final { | ||
public: | ||
SurfaceId surfaceId; | ||
MountingTransaction::Number number; | ||
TransactionTelemetry telemetry; | ||
SurfaceTelemetry surfaceTelemetry; | ||
}; | ||
|
||
} // namespace react | ||
} // namespace facebook |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2f5a1e6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @makovkastar – can you share some details as to why this change has been reverted wither here or on the original PR #33510. Happy to work on fixing this but w/o any details I don't know what exactly should be changed.
2f5a1e6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @kmagiera, it caused an insta crash on Marketplace, so I had to revert it to prevent bleeding. The exact error was
[error][tid:main][TransactionTelemetry.cpp:141] react_native_assert failure: mountStartTime_ != kTelemetryUndefinedTimePoint
. We already have a fix, so we are going to re-land it with the fix applied. The fix ensures that the transaction telemetry modified by the transaction controller is the same as the one sent in the view callbacks.