Skip to content

Conversation

@jamesmockett
Copy link
Contributor

What does this change?

Removes serverTime prop (used to prop drill current date and time down to the DateTime component) and moves to context instead

Why?

This prop adds a lot of extra noise to the codebase due to having to be drilled through numerous components so it is available where needed. We also found it difficult to make the prop required (#14776) as in some cases the data is not easily available (ie. when doing partial rendering of components).

DateTime already relies on context from ConfigProvider so by also including DateTimeProvider wherever this is used we can ensure that it is available where needed.

@jamesmockett jamesmockett self-assigned this Jan 13, 2026
@jamesmockett jamesmockett added the maintenance Departmental tracking: maintenance work, not a fix or a feature label Jan 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance Departmental tracking: maintenance work, not a fix or a feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants