Only first story plays, then it gets stuck
See original GitHub issueHey there, Thanks for the library. Looking forward for it to work as it could solve many headaches.
I use:
"next": "12.1.6",
"react": "18.1.0",
I installed the library with force via npm: npm i react-insta-stories --force
I use the following code to display the Stories:
import React, { Component } from 'react';
import dynamic from "next/dynamic";
// import Stories from 'react-insta-stories';
const ReactStories = dynamic( (props) => import('react-insta-stories'), {ssr: false}, )
const App = () => {
const stories = [
'https://cdn.vox-cdn.com/thumbor/u7eoI5OEXTO2lGPzRcOalu9_oDE=/0x0:2913x4377/1200x675/filters:focal(1253x693:1719x1159)/cdn.vox-cdn.com/uploads/chorus_image/image/60759779/860576078.jpg.1533693436.jpg',
'https://techcrunch.com/wp-content/uploads/2016/08/instagram-ceo-kevin-systrom.jpg',
];
return (
<div style={{
height: "100vh",
width: "100vw",
display: "flex",
flexDirection: "column",
alignItems: "center",
justifyContent: "center"
}}>
<ReactStories
stories={stories}
defaultInterval={1500}
width={350}
height={"69vh"}
loop
/>
</div>
);
};
export default App;
As you can see from the above code, I used the simple url string method to load the data.
It loads correctly but only shows the first story, after which it gets stuck.
Screengrab is attached.
Issue Analytics
- State:
- Created a year ago
- Comments:10 (6 by maintainers)
Top Results From Across the Web
Are your Instagram Stories repeating? Here's how to fix it
According to an Instagram subreddit, the root cause of Instagram Stories playing on repeat is a glitch that came with a new update....
Read more >How To Fix Instagram Story Stuck at Posting Issue
If the problematic story issue is caused by a software glitch then this is just temporary and can easily be fixed by restarting...
Read more >How to Fix Instagram Story Stuck at Posting Issue - Guiding Tech
For that, first, you need to uninstall the app from your phone. On Android, go to Play Store and look for Instagram. Tap...
Read more >Instagram Stories Not Loading? A Troubleshooting Guide
1. Check Your Internet Connection. The first thing you should do if your Instagram Stories are not loading is to check your internet...
Read more >How to Easily Fix Instagram Stories From Freezing
First, let's address some roots of this problem. If your WiFi signal is not strong or secure, this can cause your smartphone to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@leonardolessa Same problem. It seems like something is wrong when updating state for the next() function. To fix it, I override the next function which is provided by this package. Here’s an example:
Hello! Thanks for the discussion people! You are welcome to raise PRs and improve the package 💯