- Migration Guides
- Release Notes
- Yes,
createStore
is still deprecated! https://redux.js.org/usage/migrations/migrating-rtk-2#createstore-deprecation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// omit imports and stuff | |
// Using Next 11.1 | |
module.exports = withPlugins( | |
[ | |
withBundleAnalyzer({ | |
enabled: process.env.ANALYZE === 'true' | |
}) | |
], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import Jumbotron from 'react-bootstrap/Jumbotron'; | |
import Alert from 'react-bootstrap/Alert'; | |
import Button from 'react-bootstrap/Button'; | |
import { FallbackProps } from 'react-error-boundary'; | |
interface AEFProps extends FallbackProps { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Example of using multiple / nested `createEntityAdapter` calls within a single Redux Toolkit slice | |
interface Message { | |
id: string; | |
roomId: string; | |
text: string; | |
timestamp: string; | |
username: string; | |
} |
- Double-checking whether
window
exists in React Native:
react native window global
- Finding the giant "useLayoutEffect warnings" thread:
react uselayouteffect ssr
[12:14 AM] acreddy : are hooks value stored in fiber?
[10:40 AM] ghardin137 : not really
[10:50 AM] acemarke : @acreddy, @ghardin137 : yes they are, actually.
A "fiber" is a plain JS object that React uses to store bookkeeping information on each rendered component in the tree. The linked list of hooks is indeed stored as a field on the fiber for that component
NewerOlder