Skip to content

Further reactification#1359

Merged
jtojnar merged 7 commits into
masterfrom
more-reactification
Sep 30, 2022
Merged

Further reactification#1359
jtojnar merged 7 commits into
masterfrom
more-reactification

Conversation

@jtojnar

@jtojnar jtojnar commented Sep 29, 2022

Copy link
Copy Markdown
Member

Also fixes parcel-bundler/parcel#8382 by removing jQuery.

Replacing a global variable by a pseudo-global React context.
Let’s make it a React hook to allow caching the value.

Ideally, we would create the sharers once in EntriesPage and then pass them down
but that would break custom sharers since the `user.js` may take some time to load.
@jtojnar jtojnar force-pushed the more-reactification branch from 8aee5ee to 3f8c985 Compare September 29, 2022 06:17
@jtojnar jtojnar added this to the 2.19 milestone Sep 29, 2022
Requires attaching App after `selfoss.loggedin` is updated.
The jQuery removal was long coming.
Since the next version of Fancybox is unfree, let’s switch to something else.
It is bit more maintained and looks better.
@jtojnar jtojnar force-pushed the more-reactification branch from 6b11c5c to 773db11 Compare September 30, 2022 10:29
@jtojnar jtojnar marked this pull request as ready for review September 30, 2022 10:32
@jtojnar jtojnar merged commit 773db11 into master Sep 30, 2022
@jtojnar jtojnar deleted the more-reactification branch September 30, 2022 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bundling jQuery using browserslist > 0.25% produces infinite recursion

1 participant