Skip to content

Commit

Permalink
Merge branch 'master' into feat-react-createSelector
Browse files Browse the repository at this point in the history
  • Loading branch information
hiyuki authored Aug 26, 2024
2 parents 1460dc2 + e0e9d86 commit 64ad53c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useEffect, useLayoutEffect, useSyncExternalStore, useRef, createElement, memo, forwardRef, useImperativeHandle } from 'react'
import { useEffect, useLayoutEffect, useSyncExternalStore, useRef, createElement, memo, forwardRef, useImperativeHandle, Fragment } from 'react'
import * as ReactNative from 'react-native'
import { ReactiveEffect } from '../../../observer/effect'
import { hasOwn, isFunction, noop, isObject, error, getByPath, collectDataset } from '@mpxjs/utils'
Expand Down Expand Up @@ -37,6 +37,7 @@ function createEffect (proxy, components, props) {
}
update.id = proxy.uid
const getComponent = (tagName) => {
if (tagName === 'block') return Fragment
return components[tagName] || getByPath(ReactNative, tagName)
}
proxy.effect = new ReactiveEffect(() => {
Expand Down

0 comments on commit 64ad53c

Please sign in to comment.