Skip to content

Commit

Permalink
Merge pull request #488 from cofacts/avoid-flicker
Browse files Browse the repository at this point in the history
Don't show loading if article is already loaded
  • Loading branch information
MrOrz authored May 14, 2022
2 parents affe465 + 1898fb0 commit 47818e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/article/[id].js
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ function ArticlePage() {

usePushToDataLayer(!!article, { event: 'dataLoaded' });

if (loading) {
if (loading && !article) {
return (
<AppLayout>
<Head>
Expand Down

0 comments on commit 47818e1

Please sign in to comment.