Skip to content

Replace serverTime prop with context - #15120

Closed
jamesmockett wants to merge 5 commits into
mainfrom
jm/server-time-context
Closed

jamesmockett wants to merge 5 commits into
mainfrom
jm/server-time-context

Conversation

@jamesmockett

Copy link
Copy Markdown
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
@github-actions

Copy link
Copy Markdown

"This PR is stale because it has been open 30 days with no activity. Unless a comment is added or the “stale” label removed, this will be closed in 3 days"

@jamesmockett
jamesmockett force-pushed the jm/server-time-context branch from 6300eed to d6897ec Compare February 13, 2026 17:23
@github-actions

Copy link
Copy Markdown

"This PR is stale because it has been open 30 days with no activity. Unless a comment is added or the “stale” label removed, this will be closed in 3 days"

@github-actions github-actions Bot added the Stale label Mar 16, 2026
@github-actions

Copy link
Copy Markdown

This PR was closed because it has been stalled for 3 days with no activity.

@github-actions github-actions Bot closed this May 20, 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 Stale

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant