'algolia search return old data

I'm using algolia search. it worked fine for the first time once the app loaded but then I go manually to algolia dashboard and updated data and try to do the same search but it still returned old data not updated data. I have waited 2 minutes and tried but it is still the same. then i close my app and try then its working. what im doing wrong. I'm new to algolia. please help me.

import algoliasearch from 'algoliasearch';
const searchClient = algoliasearch(Config.ALGOLIA_APP, Config.ALGOLIA_SEARCH);
const indexFeed = searchClient.initIndex('feed');
indexFeed
      .search('', {
        hitsPerPage: 10,
        page: 0,
      })
      .then(({hits}) => {
        this.setState({
          feed: [...hits] || [],
        });
      });


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source