Giter Site home page Giter Site logo

Comments (10)

shannonhochkins avatar shannonhochkins commented on July 4, 2024

I have noticed this and it's on my list! It's an order of operations issue, I will have this addressed as soon as i can :)

from ha-component-kit.

ifuller1 avatar ifuller1 commented on July 4, 2024

from ha-component-kit.

shannonhochkins avatar shannonhochkins commented on July 4, 2024

The source is in this repo @ifuller1 under packages/core :)

from ha-component-kit.

shannonhochkins avatar shannonhochkins commented on July 4, 2024

Feel free to submit a pull request if I don't solve it in time! But i will take a look at it early next week!

from ha-component-kit.

ifuller1 avatar ifuller1 commented on July 4, 2024

from ha-component-kit.

shannonhochkins avatar shannonhochkins commented on July 4, 2024

No problems!

What i had planned to do is reference how home-assistant handles auth here: https://github.com/home-assistant/frontend/blob/cd19894ab096faef764c5cd220f572133f6fc445/cast/src/launcher/layout/hc-connect.ts#L234 and mimic the same behaviour through @hakit/core

from ha-component-kit.

shannonhochkins avatar shannonhochkins commented on July 4, 2024

I have just published a new version of @hakit/core (v1.0.9) - changes here

This should address your delay issue you were having, however it would be good to understand exactly what you were trying to hit the issue

I believe I've solved a few bugs with the authentication flow (listed in the PR linked above) however please let me know if you're still having issues!

from ha-component-kit.

shannonhochkins avatar shannonhochkins commented on July 4, 2024

I will close this ticket due to inactivity - the issue has been resolved :)

from ha-component-kit.

ifuller1 avatar ifuller1 commented on July 4, 2024

Apologies, I've been away. I did try with the new library but I still have to trigger a refresh.

To be clear I'm setting local storage before I render any react.

What I haven't done is checked the vite cache is cleared or used core source and a debugger. So best to close for now and I'll re-open with more data if necessary.

Cheers

from ha-component-kit.

shannonhochkins avatar shannonhochkins commented on July 4, 2024

That's okay! You might need to share a bit of your setup to help me identify the issue, what are you setting in local storage before rendering? HassConnect should do that for you

from ha-component-kit.

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.