Skip to content

How can I show dynamic title in Meta function in loader suspense case? #6073

Closed Answered by vedovelli
ShourovRoy asked this question in Q&A
Discussion options

You must be logged in to vote

Can't you separate what's critial from what can wait?

  const critical = await getCriticalData() // to be used in the <head></head>

  const dataFromExpensive = getDataFromExpesiveProcessing() // to be used elsewhere

  return defer({
    critical,
    dataFromExpensive
  })

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@ShourovRoy
Comment options

@vedovelli
Comment options

Answer selected by ShourovRoy
@ShourovRoy
Comment options

@sergiodxa
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants