Skip to content

Navigation Menu

Sign in
Sign up

ReactReader doesn't load ebook from second time #154

dunglt-iks started this conversation in Show and tell
Discussion options

Dear Gerhard Sletten,

I wrap ReactReader by my own component. My component contains Input file and ReactReader. When I select file from Input, ReactReader load that ebook file. It works properly at first time. But, It doesn't work from second time. ReactReader doesn't load new ebook. Please look at the screenshot for details. Question: how can I force ReactReader load new book?
Thank you very much
ebookReader

You must be logged in to vote

Replies: 2 comments

Comment options

It seems component is not re-rendered whenever url property changes

You must be logged in to vote
0 replies
Comment options

I have found solution from stackover, add key property in ReactReader Component, its value is file name which is change whenver I select new epub file.

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /