GithubHelp home page GithubHelp logo

fix: [Uncaught RangeError: Maximum call stack size exceeded] when using FluentDesignSystemProvider together with FluentCard about fluentui-blazor HOT 4 CLOSED

awlc avatar awlc commented on June 13, 2024
fix: [Uncaught RangeError: Maximum call stack size exceeded] when using FluentDesignSystemProvider together with FluentCard

from fluentui-blazor.

Comments (4)

vnbaaij avatar vnbaaij commented on June 13, 2024

This has been discussed before.

We advise to not use the FluentDesignSystemProvider. It is an older (deprecated) component. Use the design tokens to set the color as shown on the demo site page https://www.fluentui-blazor.net/DesignTokens

from fluentui-blazor.

awlc avatar awlc commented on June 13, 2024

Thx for the update.

I tried using Design Tokens by code to change the global Accent color using AccentBaseColor.WithDefault() but the problem is that the default blue color will always be shown first. Although it's just like a flick in about 1/3 of a second but that effect isn't as good as using FluentDesignSystemProvider. Are you guys having plan to remediate this?

from fluentui-blazor.

vnbaaij avatar vnbaaij commented on June 13, 2024

We have a solution for that already by using the FluentDesignTheme component and the loading-theme web component. When using that, you can specify the accent color on the the itself. You don't need to use the DesignToken then. See See https://www.fluentui-blazor.net/DesignTheme and specifically the [How to remove the "bright flash" on loading](https://www.fluentui-blazor.net/DesignTheme and #how-to-remove-the-%22bright-flash%22-on-loading) part.

from fluentui-blazor.

awlc avatar awlc commented on June 13, 2024

Thank you thank you thank you!!!
Just tried and this works great!
Very much appreciated with the work from you guys.
Oh and praised for your quick response too.
Keep up the great work!

from fluentui-blazor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.