Skip to content

Conversation

ellahw
Copy link
Member

@ellahw ellahw commented Sep 11, 2026

Endringer

  • Laget ny hook useSessionStorage, samme mønster som useLocalStorage men med sessionStorage
  • Byttet useState til useSessionStorage for selectedAlbum og sortBy i App.tsx
  • Valgt album og sortering lagres nå i sessionStorage under nøklene 'selectedAlbum' og 'sortBy'

Test

  • npm run lint fungerer uten feil
  • npm run build fungerer uten feil
  • Åpne appen med npm run dev og:
    • Test at valg av album og sortering består ved reload i samme fane
    • Test at valg av album og sortering nullstilles til standardverdi i en ny fane/nytt vindu

Closes #25

@ellahw ellahw requested a review from a team as a code owner September 11, 2026 07:59
@ellahw ellahw linked an issue Sep 11, 2026 that may be closed by this pull request
2 tasks
Copy link
Member

@mariehd mariehd left a comment

Choose a reason for hiding this comment

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

funker bra!

@ellahw ellahw merged commit cc20481 into main Sep 11, 2026
@ellahw ellahw deleted the 25-lagre-filtersortering-i-sessionstorage branch September 11, 2026 18:40
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Lagre filter/sortering i sessionStorage
2 participants