Coder Social home page Coder Social logo

graph-react-starter's People

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

graph-react-starter's Issues

Unable to login with M365 Dev Tenant

I was able to load the site but not able to login using my M365 dev tenant. I approved access as requested. Tried a real tenant I have as well. Got this error for both:

2020-10-13_18-21-17

I then tried doing the same thing with an "in private" mode browser but got the same error. Could be my tenant...not sure?

Yarn install error with Github Codespaces

First time I ran yarn I got this error.

error An unexpected error occurred: "https://registry.yarnpkg.com/@jest/console/-/console-24.9.0.tgz: 
ENOENT: no such file or directory, open '/usr/local/share/yarn-cache/v4/[email protected]
79b1bc06fb74a8cfb01cbdedf945584b1b9707f0/node_modules/@jest/console/.yarn-tarball.tgz'".

Ran it again and it was fine though. Might be a Github Codespaces thing (haven't tried locally)?

Build gives a warning which prevents seeing the URL in Github Codespaces

After running yarn start in Github Codespaces a warning appears due to deps and options not being passed into the useGet hook dependency list. That blocked seeing the URL that I need to click for the forwarding Codespaces does.

I updated the useGet dependencies to [isSignedIn, resource, deps, options] and the warning went away. Haven't look if adding those breaks anything else though.

API design - getting current user

const [user, userLoading ] = useGet<User>('/me');

which calls

export function useGet<T = any>(resource: string, deps?: unknown[], options?: GetOptions) : [T | undefined, boolean, any] {}

is practical but a bit obscure and hard to discover. Ideally, we are probably looking to get close to something like:
User.current or something like that, right?

useGet makes it easier to make the HTTP call but one needs to know that to get the current user, they need to make a get request that will return a User instance by call the /me URI. That's quite a lot to discover for a pretty common action, isn't it?

react hook warning

./src/mgt.ts
Line 58:6: React Hook useEffect has missing dependencies: 'deps' and 'options'. Either include them or remove the dependency array react-hooks/exhaustive-deps

Search for the keywords to learn more about each warning.
To ignore, add // eslint-disable-next-line to the line before.

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.