Open yukukotani opened 3 years ago
I think the Expected behavior can be also:
@MurakamiShinyu
Yes, that's one of the options. But it means renderer component would have a constraint: page
prop will be ignored when source
is changed. So users of @vivliostyle/react
must handle onLoad
event and update page
props by themselves.
I need some investigation but it seems that implementing my expected behavior is hard. Maybe we can pick your option first, then update to respect page
props later.
Describe the bug On
source
prop updated, the first page is always loaded regardless ofpage
prop.To Reproduce Steps to reproduce the behavior:
yarn storybook
to open storybookPage
knob to2
Source
knob tohttps://vivliostyle.github.io/vivliostyle_doc/samples/gutenberg/Alice.html
Expected behavior The second page of "Alice" is shown in step 4.
Additional context
Found in https://github.com/vivliostyle/vivliostyle.js/issues/685