We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
loadable.lib
1 parent 3ae704a commit da05d87Copy full SHA for da05d87
packages/component/src/library.js
@@ -3,11 +3,11 @@ import createLoadable from './createLoadable'
3
4
export const { loadable, lazy } = createLoadable({
5
onLoad(result, props) {
6
- if (result && props.ref) {
7
- if (typeof props.ref === 'function') {
8
- props.ref(result)
+ if (result && props.forwardedRef) {
+ if (typeof props.forwardedRef === 'function') {
+ props.forwardedRef(result)
9
} else {
10
- props.ref.current = result
+ props.forwardedRef.current = result
11
}
12
13
},
0 commit comments