Introduce useLogger hook
Summary: In the Flipper chrome there is a lot of `logger={logger}` prop drilling. Let's not do that anymore in the future by using a proper hook, which is exposed from `flipper-plugin`.
Reviewed By: passy
Differential Revision: D25421304
fbshipit-source-id: 01ec8563c67f7e2fac359c2f8216eba722bff8d9
This commit is contained in:
committed by
Facebook GitHub Bot
parent
083dbd3dbc
commit
4aff8c1bcf
@@ -38,6 +38,7 @@ test('Correct top level API exposed', () => {
|
||||
"sleep",
|
||||
"styled",
|
||||
"theme",
|
||||
"useLogger",
|
||||
"usePlugin",
|
||||
"useTrackedCallback",
|
||||
"useValue",
|
||||
@@ -57,9 +58,12 @@ test('Correct top level API exposed', () => {
|
||||
"Draft",
|
||||
"FlipperLib",
|
||||
"LogLevel",
|
||||
"LogTypes",
|
||||
"Logger",
|
||||
"MenuEntry",
|
||||
"NormalizedMenuEntry",
|
||||
"PluginClient",
|
||||
"TrackType",
|
||||
]
|
||||
`);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user