Ionic Page Caching: Where to Refresh Data When Back Navigation Skips ngOnInit
Ionic's ion-router-outlet keeps visited pages mounted, so ngOnInit does not re-run on back navigation. Here is where to refresh data and clean up.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Ionic's ion-router-outlet keeps visited pages mounted, so ngOnInit does not re-run on back navigation. Here is where to refresh data and clean up.
Decide between @capacitor-community/push and @capacitor-fcm/fcm for Ionic push notifications. Compare features, trade‑offs, and see a step‑by‑step implementation of the community push plugin with validation steps.
Learn how to make your Ionic app automatically follow the OS dark‑mode setting using CSS variables and the prefers‑color‑scheme media query. A step‑by‑step guide, trade‑offs, and a quick test checklist.
ngOnInit doesn't re-run when Ionic caches pages, causing stale data on back-navigation. Use ionViewWillEnter for per-visit refresh.
Ionic's lazy loading splits each page into its own bundle so users only download code when they navigate to it. Here's how to convert routes, verify the split, and avoid the singleton-service trap.
When building an Ionic Angular app, deciding between Angular Router and Ionic NavController can shape navigation, deep linking, and user experience. This guide weighs constraints, compares features, and walks through a concrete implementation to help you pick the right approach.
Learn how to add Capacitor's Camera plugin to a hybrid app, capture a photo with a few lines of TypeScript, and verify the native setup on both iOS and Android.
An architecture note on treating Capacitor's JavaScript-to-native plugin bridge as a security boundary: minimal design, trust zones, sync checks, and the drift failures that break apps in production.
A concise decision guide comparing Ionic's LocalStorage and SQLite options, with code samples, validation steps, and practical limits to help you pick the right persistence strategy.