Commit 4dcbf89
committed
fix: use dynamic function call for optional Phoenix.Component dependency
Use apply/3 to call Phoenix.Component.assign/3 conditionally to avoid
compilation warnings when Phoenix.LiveView is not installed. This allows
the Redux.LiveView module to compile successfully in CI where LiveView
is not a dependency.1 parent 5e8a764 commit 4dcbf89
1 file changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
235 | | - | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
236 | 241 | | |
237 | 242 | | |
238 | 243 | | |
| |||
0 commit comments