Skip to content

Commit 52273aa

Browse files
committed
Added useMemo hook
1 parent 7cddd9b commit 52273aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/Stories.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { useState, useEffect, useRef, useCallback } from 'react'
1+
import React, { useState, useEffect, useRef, useCallback, useMemo } from 'react'
22
import { trackPromise, usePromiseTracker } from 'react-promise-tracker'
33

44
import Button from './Button'
@@ -16,7 +16,7 @@ const Stories = ({ authorId, followerId }) => {
1616

1717
const [page, setPage] = useState(1)
1818

19-
const statusOptions = []
19+
const statusOptions = useMemo(() => [], [])
2020

2121
const [status, setStatus] = useState('Under consideration')
2222

0 commit comments

Comments
 (0)