useMemo do not keep your data on refresh page (full reload browser page and not re-reder) . Did you tried some way for caching your api response?