Since historical state has to be centralized at the root, in order to have a single handler for history events, it'd be cleaner to have a single method that updates history, rather than setPdf and setPage. This would also be the right way to handle navigating to a certain annotation in a pdf.
Since historical state has to be centralized at the root, in order to have a single handler for history events, it'd be cleaner to have a single method that updates history, rather than setPdf and setPage. This would also be the right way to handle navigating to a certain annotation in a pdf.