Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: <FadeIn/> supporting react-dom, react-native #1109

Open
manudeli opened this issue Jul 19, 2024 · 2 comments
Open

[Feature]: <FadeIn/> supporting react-dom, react-native #1109

manudeli opened this issue Jul 19, 2024 · 2 comments
Assignees

Comments

@manudeli
Copy link
Member

manudeli commented Jul 19, 2024

Package Scope

etc

Description

const PostsPage = () => {
  usePrefetchQuery(postsQueryOptions())

  const averageLoadingTimeQuery = useQuery({
    queryKey: ['averageLoadingTime'],
    queryFn: api.averageLoadingTime,
    placeholderData: 200, // If don't know the average API loading time yet, treat 200ms as the default value.
  })

  return (
    <Suspense
      fallback={
        // After delaying loadingTimeQuery.data, skeleton FadeIn for 300ms
        <FadeIn delay={loadingTimeQuery.data} ms={300}>
          <PostListSkeleton />
        </FadeIn>
      }
    >
      <SuspenseQuery {...postsQueryOptions()}>
        {({ data: posts }) => posts.map((post) => <Post key={post.id} {...post} />)}
      </SuspenseQuery>
    </Suspense>
  )
}

Possible Solution

No response

etc.

No response

@manudeli manudeli changed the title [Feature]: <FadeIn/> [Feature]: <FadeIn/> not only support react-dom, react-native Jul 19, 2024
manudeli added a commit that referenced this issue Jul 30, 2024
related with #1093 #1109 #1072 #1071

# Overview

<!--
    A clear and concise description of what this pr is about.
 -->

I want to support isomorphic `<InView/>`, `<FadeIn/>` for react-dom and
react-native at once. This pull request is start for it

- @suspenisve/react-native 
- @suspenisve/react-dom

![Jul-27-2024
05-05-21-min](https://github.com/user-attachments/assets/ce5bc8bd-9a96-42b3-b954-672dacbc0dec)

## PR Checklist

- [x] I did below actions if need

1. I read the [Contributing
Guide](https://github.com/toss/suspensive/blob/main/CONTRIBUTING.md)
2. I added documents and tests.
@manudeli manudeli changed the title [Feature]: <FadeIn/> not only support react-dom, react-native [Feature]: <FadeIn/> supporting react-dom, react-native Jul 31, 2024
@manudeli manudeli self-assigned this Aug 1, 2024
manudeli added a commit that referenced this issue Aug 3, 2024
related with #1093 #1109 #1072 #1071

# Overview

<!--
    A clear and concise description of what this pr is about.
 -->

I want to support isomorphic `<InView/>`, `<FadeIn/>` for react-dom and
react-native at once. This pull request is start for it

- @suspenisve/react-native 
- @suspenisve/react-dom

![Jul-27-2024
05-05-21-min](https://github.com/user-attachments/assets/ce5bc8bd-9a96-42b3-b954-672dacbc0dec)

## PR Checklist

- [x] I did below actions if need

1. I read the [Contributing
Guide](https://github.com/toss/suspensive/blob/main/CONTRIBUTING.md)
2. I added documents and tests.
manudeli added a commit that referenced this issue Aug 3, 2024
related with #1093 #1109 #1072 #1071

# Overview

<!--
    A clear and concise description of what this pr is about.
 -->

I want to support isomorphic `<InView/>`, `<FadeIn/>` for react-dom and
react-native at once. This pull request is start for it

- @suspenisve/react-native 
- @suspenisve/react-dom

![Jul-27-2024
05-05-21-min](https://github.com/user-attachments/assets/ce5bc8bd-9a96-42b3-b954-672dacbc0dec)

## PR Checklist

- [x] I did below actions if need

1. I read the [Contributing
Guide](https://github.com/toss/suspensive/blob/main/CONTRIBUTING.md)
2. I added documents and tests.
manudeli added a commit that referenced this issue Aug 3, 2024
related with #1093 #1109 #1072 #1071

# Overview

<!--
    A clear and concise description of what this pr is about.
 -->

I want to support isomorphic `<InView/>`, `<FadeIn/>` for react-dom and
react-native at once. This pull request is start for it

- @suspenisve/react-native 
- @suspenisve/react-dom

![Jul-27-2024
05-05-21-min](https://github.com/user-attachments/assets/ce5bc8bd-9a96-42b3-b954-672dacbc0dec)

## PR Checklist

- [x] I did below actions if need

1. I read the [Contributing
Guide](https://github.com/toss/suspensive/blob/main/CONTRIBUTING.md)
2. I added documents and tests.
manudeli added a commit that referenced this issue Aug 3, 2024
related with #1093 #1109 #1072 #1071

# Overview

<!--
    A clear and concise description of what this pr is about.
 -->

I want to support isomorphic `<InView/>`, `<FadeIn/>` for react-dom and
react-native at once. This pull request is start for it

- @suspenisve/react-native 
- @suspenisve/react-dom

![Jul-27-2024
05-05-21-min](https://github.com/user-attachments/assets/ce5bc8bd-9a96-42b3-b954-672dacbc0dec)

## PR Checklist

- [x] I did below actions if need

1. I read the [Contributing
Guide](https://github.com/toss/suspensive/blob/main/CONTRIBUTING.md)
2. I added documents and tests.
@manudeli
Copy link
Member Author

manudeli commented Sep 6, 2024

This is next plan

Copy link

coauthors bot commented Sep 6, 2024

People can be co-author:

Candidate Reasons Count Add this as commit message
@manudeli #1109 (comment) #1109 2 Co-authored-by: manudeli <[email protected]>

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

No branches or pull requests

1 participant