Breadcrumbs stringify object
See original GitHub issueIt might make sense to improve the rendering of objects passed as breadcrumbs. Currently they become [object Object]
which is not very helpful.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:13
- Comments:14 (7 by maintainers)
Top Results From Across the Web
Recursive function to build breadcrumbs from json menu object
So I've been struggling to wrap my head around this recursive function and get the right results. const _ = require('lodash'); let ...
Read more >Implement Structured Data Breadcrumbs Using GTM
How to implement structured data Breadcrumbs lists using Google Tag Manager.
Read more >Building Dynamic Breadcrumbs in NextJS - DEV Community
Breadcrumbs are a website navigation tool that allows users to see their current page's "stack" of how it is nested under any parent...
Read more >Breadcrumbs with each part linked | Velo by Wix
I contacted the velo team before, I want to add breadcrumbs to a ... item could be different: either stringify the object with...
Read more >_json - Introduction
stable: boolean : If set to true, equal objects will be stringified to the same string. Object keys are sorted. space: number |...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Wait, what?! I’m confused as Sentry is logging my console logs automatically. But then it logs everything as useless
[object Object]
and the official statement is that this is intended because that’s not what breadcrumbs were designed for? o_OBut for everybody else who ends up in this thread wondering how to fix this, there’s a simple solution: Set the
breadcrumbCallback
as described in the JavaScript Configuration. This should allow you to stringify your log the way you want.Breadcrumbs are intentionally designed to be lightweight “hints” … we want to avoid just straight-up rendering big trees of embedded data. There is a payload data limit.