Commit aa52b00
Implement safe dynamic import utility and update App component to use it (#25)
Summary:
- Added a new utility function `safeImport` to handle dynamic imports gracefully, avoiding static analysis issues.
- Updated the App component to utilize `safeImport` for importing internal utilities, ensuring that the application can handle missing modules without crashing.
- Enhanced error handling to log warnings when module imports fail.
This change improves the robustness of the application by allowing for safer dynamic imports of internal utilities.
Pull Request resolved: #25
Reviewed By: Sibylau
Differential Revision: D77968857
Pulled By: FindHao
fbshipit-source-id: 0e1ef1ef0e85f1b146b414fcd9069fd1083eddcd1 parent 8d7459c commit aa52b00
2 files changed
+28
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
79 | | - | |
80 | | - | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
81 | 85 | | |
82 | 86 | | |
83 | 87 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
0 commit comments