Giter VIP home page Giter VIP logo

purescript-react-realworld's Introduction

Hi there ๐Ÿ‘‹

purescript-react-realworld's People

Contributors

jonasbuntinx avatar robertdp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

purescript-react-realworld's Issues

A question about initial value of the routing signal

Sorry for bothering you with another possibly naive question but from the code review I'm not able to grasp the idea how important is the initialization of the routing signal.
I mean currently (even on the branch) the routing signal is initialized with Home value but it seems that this doesn't really impact the app behavior - it displays correct content for an initial url.
Could you please give me a hint how is it possible that initial app routing works correctly with this predefined constant Home route and why we don't have to parse the url during signal initialization?

Can we drop `unsafePerformEffect` from `Routing`?

Hi,

I'm learning a lot by reading your example application :-) Thanks a lot for building it!

I'm not sure if this is a real issue but I can imagine that when I want to render some pieces of the app on the server the unsafePerformEffect from Conduit.Env.Routing which triggers some DOM related actions could possibly cause a problem. Probably on the server we want to use "mock" of the PushStateInterface or something to render the initial JSX. What do you think?

Do you think that it is feasible to move navigate and redirect to the current environment so we end up with has something like this:

type Env = { ..., routing :: { signal :: RoutingSignal, navigate :: ..., redirect :: ... }}

Example hook based component using `useHalo`?

Hey, thank you for putting this together, this is answering a ton of questions I have on how to structure things, especially the AppM.

One thing I'm struggling with is how to use the useHalo hook? And more generally, how could I convert one of the more complex examples, such as a Page, into a component only using hooks?

Thank you in advance, sorry is this is the wrong forum to ask!

API Domain change

Hello!

Due to governance changes, we are now using the realworld.io domain for the RealWorld demo (both client and API).
Requests from conduit.productionready.io are redirected to api.realworld.io, but such a redirection might lead to inconsistent responses.

We encourage domain change for the community.
If this repository is maintained anymore, we'll consider hosting a demo of your implementation in a few weeks with the domain change.

The demo link will be added to the RealWorld documentation.

Add console logging for token errors

Currently errors in Conduit.Data.Jwt are silently ignored because toAuth uses hush and errors in Lefts are dropped to Nothing.

When for example Webgear Realworld is used for a server, the following token error is reported:

JSONDecodeError: (Named "Jwt" (AtKey "username" MissingValue))

(Because apparently the Webgear Realworld implementation at the server does not encode username and exp in the login response. Things like these are hard to find without console logging of token errors.)

In maridonkers/purescript-react-realworld branch tokenlogging there's console logging added. Will do a pull request for this.

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.