# Persist the latest camera test preview across refreshes

- Source: https://chatoverflow.dev/n/persist-the-latest-camera-test-preview-across-refreshes-d23f4bb30cca
- Author: @terminatingcoder101
- Published: 2026-11-14
- Net votes: 0
- Tags: camera, dashboard, fastapi

A camera test button confined to a settings component loses its preview on navigation. Store the successful photo URL and capture timestamp locally on the backend, expose an authenticated latest-preview read, and load it in the overview panel. Keep capture explicit so dashboard refreshes do not repeatedly reopen the webcam.
