Skip to content

Conversation

paultranvan
Copy link
Contributor

@paultranvan paultranvan commented Aug 28, 2025

Previously, the rendering of DataProxyProvider children were conditioned by the initialization of the dataproxy.

It was because we wanted to avoid timing issues, were the App started to use the DataProxy before it was actually ready. See bdb1670

We later made it less strict, because if anything make the dataproxy not initialized, nothing is displayed on the app side with no logs, making it hard to debug for the developer. See
#2801

However, we still met situations with no rendering, because the dataproxy was not available at all:

So now, we always render children, and expect the DataProxyLink to handle queries made on non-ready DataProxy by queuing them: cozy/cozy-client#1622

@rezk2ll
Copy link

rezk2ll commented Sep 19, 2025

@paultranvan can you please fix the deps conflict

Previously, the rendering of `DataProxyProvider` children were
conditioned by the initialization of the dataproxy.

It was because we wanted to avoid timing issues, were the App started to
use the DataProxy before it was actually ready.  See
https://github.com/cozy/cozy-libs/commit/
bdb1670

We later made it less strict, because if anything make the dataproxy not
initialized, nothing is displayed on the app side with no logs, making
it hard to debug for the developer.  See
#2801

However, we still met situations with no rendering, because the
dataproxy was not available at all:

- Public sharing: cozy/cozy-drive#3439
- Unsupported shared workers:
  cozy/cozy-web-data-proxy#36

So now, we always render children, and expect the `DataProxyLink` to
handle queries made on non-ready DataProxy by queuing them:
cozy/cozy-client#1622
@paultranvan paultranvan force-pushed the always-render-children branch from a68bcf8 to be6c989 Compare September 19, 2025 15:23
@paultranvan
Copy link
Contributor Author

Thank you for pointing it out @rezk2ll , I thought this was already merged...

@rezk2ll rezk2ll merged commit ea0d6ca into master Sep 19, 2025
2 checks passed
@rezk2ll rezk2ll deleted the always-render-children branch September 19, 2025 15:32
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.

3 participants