Skip to content

Conversation

@theperfectpunk
Copy link
Contributor

add null as useRef initial value

Thanks for the PR!

To better assist you, please select the type of PR you want to create.

Click the "Preview" tab above, and click on the link for the PR type:

add null as useRef initial value
@codesandbox-ci
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@netlify
Copy link

netlify bot commented Jan 10, 2025

Deploy Preview for redux-docs ready!

Name Link
🔨 Latest commit e9acc6c
🔍 Latest deploy log https://app.netlify.com/sites/redux-docs/deploys/6780f66be6e9280008d3eae0
😎 Deploy Preview https://deploy-preview-4763--redux-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

}) {
// highlight-start
const storeRef = useRef<AppStore>()
const storeRef = useRef<AppStore | null>(null)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const storeRef = useRef<AppStore | null>(null)
const storeRef = useRef<AppStore>(null)

@timdorr
Copy link
Member

timdorr commented Jan 10, 2025

Thanks!

@timdorr timdorr merged commit 17ea636 into reduxjs:master Jan 10, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants