Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: update link component; update route options fn #8

Merged
merged 1 commit into from
Mar 25, 2025

Conversation

nartc
Copy link
Collaborator

@nartc nartc commented Mar 25, 2025

  • Update link directive to have a single input: either a path or a NavigationOptions
  • Update route to run route fns in Injection Context: beforeLoad, loader, shouldReload
  • Update outlet to clean up on destroy

Copy link

netlify bot commented Mar 25, 2025

Deploy Preview for tanstack-angular-router ready!

Name Link
🔨 Latest commit 8b264b8
🔍 Latest deploy log https://app.netlify.com/sites/tanstack-angular-router/deploys/67e2da1d28bede0008847a53
😎 Deploy Preview https://deploy-preview-8--tanstack-angular-router.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

injector,
environmentInjector,
});
this.cmp = currentCmp;
} else {
this.cmpRef?.changeDetectorRef.markForCheck();
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

when this effect reruns for the same component for whatever reason, we'll mark this cmpRef for check just for guarantee-ness.

Comment on lines +63 to +64
this.cmp = null;
this.cmpRef = null;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nullify these for GC

@brandonroberts brandonroberts merged commit 2305fd5 into main Mar 25, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants