mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
9a7fff9eb1
Summary: This pull request adds a function called `warnOnce` that prints a warning message to the console once per session. It uses a unique key per callsite to help ensure that the message is not printed multiple times. [General] [Added] - Added new `warnOnce` function for printing a message to the developer console once per session [General] [Changed] - Changed the warnings in `react-native-implementation` to use `warnOnce` Pull Request resolved: https://github.com/facebook/react-native/pull/22109 Differential Revision: D13955887 Pulled By: cpojer fbshipit-source-id: aa51ac427a80cc0554a6bcc915715821d0bd5439