fix(spectator): resolve injection token override issue#734
Conversation
Fix provider override logic in createComponentFactory to properly extract tokens from provider objects and add null checks. Fixes ngneat#337
|
|
|
Can you please explain how it's related to the issue? |
|
The Original Problem (Issue #337) // User expected this to work but it didn't Expected behavior: The component should receive 'overridden-value' The Fix Applied
Why This Fix Solves the Issue
Visual Example of the Fix Provider Object Structure: The Connection to Issue #337 The issue #337 specifically reported:
Test Verification
|
Fix provider override logic in createComponentFactory to properly extract tokens from provider objects and add null checks.
Fixes #337
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: N/A
What is the new behavior?
Does this PR introduce a breaking change?
Other information