Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove the create-react-app example (issue 11729) #11864

Merged
merged 1 commit into from
May 1, 2020

Conversation

Snuffleupagus
Copy link
Collaborator

Given that none of the PDF.js contributors know React, maintaining and/or providing supporting for the example isn't really feasible unfortunately.
Even something as simple as running/testing the example becomes difficult for anyone completely unfamiliar with React, and furthermore:

  • It's very difficult to tell if the example demonstrates React best-practices, since the PDF.js contributors don't know React.

  • We also have no reasonable way of keeping the example up-to-date with changes in React.

  • The React example, in its current form, is even hard-coding the PDF.js version to a now unsupported version.

  • The example is currently triggering "fake worker" usage, see issue 11729, which is really really bad. Note that the "fake worker" functionality is only intended as a fallback, and it should absolutely not under any circumstances be advertised and certainly shouldn't be triggered in official PDF.js examples.

Fixes #11729

Given that none of the PDF.js contributors know React, maintaining and/or providing supporting for the example isn't really feasible unfortunately.
Even something as simple as running/testing the example becomes difficult for anyone completely unfamiliar with React, and furthermore:

 - It's very difficult to tell if the example demonstrates React best-practices, since the PDF.js contributors don't know React.

 - We also have no reasonable way of keeping the example up-to-date with changes in React.

 - The React example, in its current form, is even *hard-coding* the PDF.js version to a now unsupported version.

 - The example is currently triggering "fake worker" usage, see issue 11729, which is really *really* bad. Note that the "fake worker" functionality is *only* intended as a fallback, and it should absolutely *not* under any circumstances be advertised and certainly shouldn't be triggered in official PDF.js examples.
@timvandermeij timvandermeij merged commit 822939c into mozilla:master May 1, 2020
@timvandermeij
Copy link
Contributor

I can only agree with this, and will make sure to be more critical about adding such examples in the future. Thanks!

@Snuffleupagus Snuffleupagus deleted the rm-react-example branch May 1, 2020 22:06
@Snuffleupagus
Copy link
Collaborator Author

[...] and will make sure to be more critical about adding such examples in the future.

Don't worry about that, it was worth a try adding a new example :-)

(Given that the relevant issue had been open for over a month, with no-one attempting to fix the example, I thus figured that submitting this patch made sense.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

create-react-app example uses a fake worker
2 participants