Skip to content

how can i create a serializer for href #560

Answered by mickael-menu
Trassive asked this question in Q&A
Discussion options

You must be logged in to vote

I think there's a confusion with the Href in the v3, we'll explore an alternative. But basically you should not use Href here. Instead, use an Url from Link.url(). As for Serializable, Url is Parcelable so you might be able to write a serializer based on it. Or as an alternative, just use a String (url.toString() and Url(string) if you need to construct it again).

i want to store the current locator to keep the track of last read location but how to avoid false positive meaning if by intentionally or unintentionally user scrolls many pages in that scenario i don't want to store that location

I wouldn't recommend doing that. We typically just store the current locator as is. Users may le…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Trassive
Comment options

@mickael-menu
Comment options

Answer selected by Trassive
@Trassive
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants