This repository has been archived by the owner on Mar 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 364
[BUG] 节点更新后属性不一致导致报错 #1065
Labels
bug
Something isn't working
Comments
dominicleo
added a commit
to dominicleo/remax
that referenced
this issue
Jun 10, 2020
dominicleo
added a commit
to dominicleo/remax
that referenced
this issue
Jun 10, 2020
dominicleo
added a commit
to dominicleo/remax
that referenced
this issue
Jun 10, 2020
dominicleo
added a commit
to dominicleo/remax
that referenced
this issue
Jun 10, 2020
yesmeck
pushed a commit
that referenced
this issue
Jun 10, 2020
bug 描述 import * as React from 'react';
import { View } from 'remax/one';
import s from './index.css';
export default () => {
const [loading, setLoading] = React.useState(false);
const [list, setList] = React.useState(Array.from(Array(10).keys()));
const isMore = list.length > 5;
const onRequest = async () => {
setLoading(true);
await new Promise((resolve) => setTimeout(resolve, 1500));
setLoading(false);
setList(Array.from(Array(2).keys()));
};
return (
<View className={s.wrapper} onTap={onRequest}>
<View>
{isMore && (
<View contentPosition='center' hairline>
{loading ? <View>loading</View> : '没有更多了'}
</View>
)}
</View>
</View>
);
}; |
yesmeck
added a commit
that referenced
this issue
Jun 15, 2020
yesmeck
added a commit
that referenced
this issue
Jun 15, 2020
yesmeck
added a commit
that referenced
this issue
Jun 15, 2020
yesmeck
added a commit
that referenced
this issue
Jun 15, 2020
yesmeck
added a commit
that referenced
this issue
Jun 15, 2020
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
bug 描述
版本信息:
The text was updated successfully, but these errors were encountered: