You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When passing a different value to epubOptions & style props, EpubViewer doesn't re-evaluate and render with the new props
To Reproduce
Steps to reproduce the behavior:
Render simple viewer using the EpubViewer
Pass the required props and both (epubOptions & style) props
Make a toggle to change the value of epubOptions & style prop
Expected behavior
EpubViewer should re-render and display changes with the new passed in props
Screenshots
N/A
Desktop (please complete the following information):
OS: Windows 10 Single Language 64-bit
Browser: Firefox
Version: 88.0.1
Additional context
useEffect(()=>{// some effect to change the value of props setTimeout(()=>{setBookOption({...})setBookStyle({...})},500)// should re-render the viewer after the delay},[])<EpubViewerref={viewerRef}url={url}epubFileOptions={epubFileOptions}epubOptions={bookOption}// doesn't re-renderstyle={bookStyle}// doesn't re-renderrendtionChanged={renditionChange}loadingView={loadingView||<LoadingView/>}bookChanged={onBookInfoChange}pageChanged={onPageChange}tocChanged={onTocChange}selectionChanged={onContextMenu}/>
The text was updated successfully, but these errors were encountered:
Describe the bug
When passing a different value to epubOptions & style props, EpubViewer doesn't re-evaluate and render with the new props
To Reproduce
Steps to reproduce the behavior:
Expected behavior
EpubViewer should re-render and display changes with the new passed in props
Screenshots
N/A
Desktop (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: