fix(calendar-dropdown): proteger acceso a localStorage en parseEvents#765
Merged
Jonathangarrido merged 1 commit intomainfrom Mar 26, 2026
Merged
fix(calendar-dropdown): proteger acceso a localStorage en parseEvents#765Jonathangarrido merged 1 commit intomainfrom
Jonathangarrido merged 1 commit intomainfrom
Conversation
github-actions bot
pushed a commit
that referenced
this pull request
Mar 26, 2026
## [1.58.3](v1.58.2...v1.58.3) (2026-03-26) ### Bug Fixes * **calendar-dropdown:** proteger acceso a localStorage en parseEvents ([#765](#765)) ([08c5fa2](08c5fa2))
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Descripción
Se protege el acceso a
localStorageenCalendarDropdowndentro deparseEventspara evitar errores en entornos donde el storage no está disponible o su acceso falla. Además, se agregan comentarios para documentar qué persiste cada clave y qué representa cada grupo de eventos.Motivación y contexto
Sentry estaba reportando un error asociado al uso de
localStoragedentro del flujo del dropdown de calendario. El componente dependía de lecturas y escrituras directas al storage, por lo que ante unSecurityError, restricciones del navegador o falta de disponibilidad del objeto, el hook podía romper la ejecución.Con este ajuste el componente mantiene su comportamiento principal y, si no puede usar
localStorage, funciona sin persistencia local:Tipos de cambios