Closed michidk closed 2 weeks ago
If using one of the default configs, make sure to access it as output.ip.address
, e.g.
const providers = zebar.createProviderGroup({
ip: { type: 'ip' },
// ... other provider configs
});
function App() {
const [output, setOutput] = useState(providers.outputMap);
useEffect(() => providers.onOutput(() => setOutput(providers.outputMap)), []);
return (
<div class="app">
<div class="chip">IP: {output.ip?.address}</div>
</div>
);
}
Describe the bug
Zebar glazewm bar is empty when trying to print the IP address using IP provider.
JSON.stringify(output.ip)
prints the object, works flawlesslyJSON.stringify(ip.address)
wont workip.address
wont worktypeof(ip.address)
returnsstring
Workaround
I wanna cry but this is what I use:
Reproduction
Use glazewm starter template. Add ip provider (
ip: { type: 'ip' },
), then try to print it somewhere (output.ip.address
).The bar won't show anything besides the background.
Stack trace or error logs (if applicable)
Console log:
Version number
The one installed with glazewm v3.5.0