Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix preserving expanded-at state on show #548

Merged
merged 1 commit into from
Aug 24, 2023
Merged

Fix preserving expanded-at state on show #548

merged 1 commit into from
Aug 24, 2023

Conversation

zampino
Copy link
Collaborator

@zampino zampino commented Aug 24, 2023

Fix #547.

We're resetting expansion state when :nextjourna/hash is changing on a result. The hash is computed starting from the presented value using nippy/freeze. It turns out that adding pagination continuation functions (#421) as metadata on the presented result broke nippy serialization and we'd get a fresh hash (a gensym) on each call to show. We can fix it by excluding metadata when freezing.

@zampino zampino changed the title Fix preserving expanded-at on clerk/show Fix preserving expanded-at state Aug 24, 2023
@zampino zampino marked this pull request as ready for review August 24, 2023 14:11
@zampino zampino changed the title Fix preserving expanded-at state Fix preserving expanded-at state on show Aug 24, 2023
@zampino zampino merged commit 4e61e0e into main Aug 24, 2023
9 checks passed
@zampino zampino deleted the fix-547 branch August 24, 2023 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Expansion state is not preserved on show
1 participant