Skip to content

RefetchQueries not working for SSR and ssrForceFetchDelay #8701

Closed
@Mordred

Description

@Mordred

Intended outcome:

When I use mutation with refetchQueries, it should refetch given queries after execute even when page was rendered with SSR.

Actual outcome:

RefetchQueries is ignored for queries executed during SSR when ssrForceFetchDelay is used, because subscriptions for these queries are not started.

How to reproduce the issue:

Here is demo:

https://github.com/Mordred/apollo-client-ssr-bug

When you insert new todo, it should be displayed immediatelly, but AllTodos query is not refetched.

Versions

All versions >3.4.0

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions