Skip to content

unneeded require cycles #18

@GuillaumeHemmen

Description

@GuillaumeHemmen

Description:

It seems that there is a few require cycle in the library.

Steps To Reproduce

  1. integrate the library
  2. launch it in debug mode and watch the metro console.

Expected Results

no require cycle warning should appear

Snack, code example, screenshot, or link to a repository:

Console example

[Sat Jan 16 2021 14:56:57.491]  WARN     Require cycle: node_modules/react-native-logging-tools/src/modules/init/index.ts -> node_modules/react-native-logging-tools/src/exceptionHandler.ts -> node_modules/react-native-logging-tools/src/modules/events/index.ts -> node_modules/react-native-logging-tools/src/modules/init/index.ts

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
[Sat Jan 16 2021 14:56:57.491]  WARN     Require cycle: node_modules/react-native-logging-tools/src/modules/init/index.ts -> node_modules/react-native-logging-tools/src/flipper/index.ts -> node_modules/react-native-logging-tools/src/modules/init/index.ts

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions