Closed leastbad closed 4 years ago
@hopsoft I'm trying to work through this https://discord.com/channels/629472241427415060/708177464894947362/710151681689518130
The question really is: assuming unnecessary scary errors are lazy APIs, should we / could we make an effort to determine whether to return a promise or not based on how stimulate()
was called (via declared reflex or explicit JS)
Closed by #193
Bug Report
When a declared (eg.
data-reflex
) reflex fails on the server, the promise rejection generates an error.To Reproduce
Vanilla Rails 6 app w/SR + scaffolded resource. Declare a reflex that goes to a non-existant action in a reflex class eg:
This generates the following log output:
and the following error in the console:
Expected behavior
No errors in the console.
Versions
StimulusReflex
External tools
Browser