question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[FEAT] Dynamic window title

See original GitHub issue

Is your feature request related to a problem? Please describe.

It would be great if each page could have an auto-generated and custom title.

Example, For the Posts resource

  • dashboard -> Dashboard | refine
  • list -> Posts | refine
  • edit -> #{id} Edit Post | refine
  • show -> #{id} Show Post | refine
  • create -> Create new Post | refine

It can also be overridden by adding an event to the refine options.

onWindowTitle: ({ resource, action, params, autoGeneratedTitle }) => {
console.log({  resource, action, params, autoGeneratedTitle });
*/
{
  resource: "posts",
  options: { foo: "bar" },
  params: { id: 1, action: "edit" }
  autoGeneratedTitle: "#{1} Edit Post | refine"
} 
*/
}

It can also be managed manually with a hook called useWindowTitle() or useDocumentTitle()

Describe alternatives you’ve considered

No response

Additional context

No response

Describe the thing to improve

Pages can be easily distinguished in browser history and tabs

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:13 (12 by maintainers)

github_iconTop GitHub Comments

4reactions
amit-kshcommented, Oct 26, 2022

@aliemir @omeraplak, please unassign me from this issue. It would be better if someone else work on this one, I’m not able to solve this issue.

0reactions
aliemircommented, Nov 1, 2022

@ckragarwal any updates on this one? We’re waiting for your PR 🚀

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to set a dynamic window title for foot terminal? - Reddit
I am sure this has a simple solution, but I appear to be missing it: I would like the foot terminal window to...
Read more >
Dynamic window title with zsh shell - gists · GitHub
Dynamic window title with zsh shell. # Shows current directory and running (multi-line) command. case "$TERM" in (rxvt|rxvt-*|st|st-*|*xterm*|(dt|k|E)term).
Read more >
Dynamic window Title - Help - UiPath Community Forum
Hi Guyz, Am trying to select item, type into like that, what ever am trying it shows selector not found, actually my browser...
Read more >
Is it possible to see an entire window title? - Super User
I'm working with Google Chrome, and apparently you can have different browser windows under the same process ID. When trying to find the...
Read more >
How to get GNU screen to dynamically set gnome-terminal's ...
WOuld be nice if gnome terminal's title changed everytime I switch windows with in my screen session. There are quite a few questions...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found