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

fix: use stable promises for load/preload/React #858

Merged
merged 1 commit into from
Dec 12, 2021

Conversation

theKashey
Copy link
Collaborator

corrections on top of #830

@@ -115,7 +115,7 @@ describe('#loadable', () => {
const { container } = render(<Component />)
expect(container).toBeEmpty()
await wait(() => expect(container).toHaveTextContent('loaded'))
expect(load).toHaveBeenCalledTimes(2)
expect(load).toHaveBeenCalledTimes(1)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

now cache actually works

@theKashey theKashey merged commit 45f2d91 into main Dec 12, 2021
@theKashey theKashey deleted the correct-preload-cache branch December 12, 2021 07:32
@theKashey
Copy link
Collaborator Author

fivethreeo pushed a commit to fivethreeo/loadable-components that referenced this pull request Nov 16, 2022
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

Successfully merging this pull request may close these issues.

None yet

1 participant