question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Non-breaking React layer rewrite work

See original GitHub issue

We’re going to publish the non-breaking React layer rewrite work as part of Apollo Client 3.6, so this issue will be used to track the non-breaking parts of https://github.com/apollographql/apollo-client/issues/8245. This will mostly cover:

  • React 18 based compatibility and enhancements
  • Ensuring better communication with the AC core (by making the React layer lighter weight)
  • Revamping our test suite (leveraging renderHook)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:17
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

16reactions
hwillsoncommented, Apr 5, 2022

We’re polishing up our React 18 support. We’re aiming to have a new @apollo/client release candidate (for 3.6) with R18 support ready by the end of this week.

8reactions
ddiachkovcommented, Nov 28, 2021

We’ve just migrated one of our projects to React 18, and I’ve been working on adding Suspense support.

Here is my working PoC: https://github.com/hired/apollo-query-resource (not a real package yet — I’ve just copy-pasted code from internal monorepo):

It looks like this:

const resource = useQueryResource(query, { variables });
resource.read(); // <-- suspends

The conclusion: Suspense and Apollo actually work great together (but only on experimental branch at a moment).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Full React layer rewrite #8245 - apollographql/apollo-client
This issue tracks the rewrite of Apollo Client's React integration layer, covering many ... Non-breaking React layer rewrite work #8419.
Read more >
ReactJS render string with non-breaking spaces
React translates this JSX tag into a non-breaking space. Weird quirk: This must also be used on the same line as the text...
Read more >
Integrating with Other Libraries - React
In React, props can change over time. For example, the <Chosen> component can get different children if parent component's state changes. This means...
Read more >
white-space - CSS: Cascading Style Sheets - MDN Web Docs
Collapses white space as for normal , but suppresses line breaks (text wrapping) within the source. pre. Sequences of white space are preserved....
Read more >
Render a String with Non-breaking Spaces in React | Pluralsight
This guide explores the solution to a simple problem often encountered while dealing with strings: rendering them without spaces using some ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found