Giter VIP home page Giter VIP logo

Comments (6)

mrpmorris avatar mrpmorris commented on May 25, 2024 1

I've not really tried BSSR, I will get around to it :)

from fluxor.

mrpmorris avatar mrpmorris commented on May 25, 2024

It seems BSSR doesn't execute AfterRenderAsync, so the StoreInitializer component doesn't automatically initialize.

I suppose you'd have to resolve IStore in your app boot up and call InitializeAsync in there?

from fluxor.

guythetechie avatar guythetechie commented on May 25, 2024

I suppose you'd have to resolve IStore in your app boot up and call InitializeAsync in there?

That's right. It's a trivial fix if you know what the problem is. That said, anyone using Fluxor + BSSR will run into the issue, so might be worth calling this out somewhere. Not sure how easy it is to address directly in the library.

from fluxor.

michaelvolz avatar michaelvolz commented on May 25, 2024

just fyi: OnInitializedAsync does not seem to work in the latest build, but with OnAfterRenderAsync it works fine. Thanks for the tip!

   protected override async Task OnAfterRenderAsync(bool firstRender)
   {
       if (firstRender)
       {
           await Store.InitializeAsync();
       }
   }

from fluxor.

mrpmorris avatar mrpmorris commented on May 25, 2024

OnAfterRender* doesn't execute in SSR.

from fluxor.

michaelvolz avatar michaelvolz commented on May 25, 2024

I am using it on my machine. Works perfectly. Server/WebAssembly and Auto.

from fluxor.

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.