Select your book
Select your record
Issue Description #60037
The problem is that the whole app\route\[[...slug]]\layout.tsx re-render when you click any book or record.
1. Open the console
2. Click a book or record.
3. If the console log this on one click:
Title Rendered
Books Rendered
Records Rendered
Content Rendered
That mean the whole layout re-rendered/reset which is a problem.